settings fixes

This commit is contained in:
Asriel Camora
2023-07-23 02:44:19 +04:00
parent c96b86d9cb
commit ec4466123c
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ public sealed class Plugin : IDalamudPlugin
Service.Configuration = pluginInterface.GetPluginConfig() as Configuration ?? new Configuration(); Service.Configuration = pluginInterface.GetPluginConfig() as Configuration ?? new Configuration();
var assembly = Assembly.GetExecutingAssembly(); var assembly = Assembly.GetExecutingAssembly();
Version = assembly.GetCustomAttribute<AssemblyVersionAttribute>()!.Version; Version = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()!.InformationalVersion;
Author = assembly.GetCustomAttribute<AssemblyCompanyAttribute>()!.Company; Author = assembly.GetCustomAttribute<AssemblyCompanyAttribute>()!.Company;
Configuration = assembly.GetCustomAttribute<AssemblyConfigurationAttribute>()!.Configuration; Configuration = assembly.GetCustomAttribute<AssemblyConfigurationAttribute>()!.Configuration;
byte[] iconData; byte[] iconData;
+6 -3
View File
@@ -4,8 +4,6 @@ using ImGuiNET;
using System.Numerics; using System.Numerics;
using System; using System;
using Craftimizer.Solver.Crafty; using Craftimizer.Solver.Crafty;
using System.Reflection;
using System.Diagnostics;
namespace Craftimizer.Plugin.Windows; namespace Craftimizer.Plugin.Windows;
@@ -19,7 +17,7 @@ public class Settings : Window
SizeConstraints = new WindowSizeConstraints() SizeConstraints = new WindowSizeConstraints()
{ {
MinimumSize = new Vector2(400, 600), MinimumSize = new Vector2(400, 400),
MaximumSize = new Vector2(float.MaxValue, float.MaxValue) MaximumSize = new Vector2(float.MaxValue, float.MaxValue)
}; };
Size = SizeConstraints.Value.MinimumSize; Size = SizeConstraints.Value.MinimumSize;
@@ -391,6 +389,9 @@ public class Settings : Window
private static void DrawTabAbout() private static void DrawTabAbout()
{ {
if (!ImGui.BeginTabItem("About"))
return;
var plugin = Service.Plugin; var plugin = Service.Plugin;
var icon = plugin.Icon; var icon = plugin.Icon;
@@ -415,5 +416,7 @@ public class Settings : Window
ImGuiUtils.Hyperlink("Craftingway", "https://craftingway.app"); ImGuiUtils.Hyperlink("Craftingway", "https://craftingway.app");
ImGui.SameLine(0, 0); ImGui.SameLine(0, 0);
ImGui.Text(" for the original solver algorithm"); ImGui.Text(" for the original solver algorithm");
ImGui.EndTabItem();
} }
} }