Allow workshop window to be minimized if not currently crafting
This commit is contained in:
parent
b61de1f52c
commit
ec5e3968ca
@ -61,7 +61,7 @@ internal sealed class MainWindow : LWindow
|
||||
MaximumSize = new Vector2(500, 9999),
|
||||
};
|
||||
|
||||
Flags = ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.MenuBar;
|
||||
Flags = ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.MenuBar;
|
||||
AllowClickthrough = false;
|
||||
}
|
||||
|
||||
|
@ -8,6 +8,7 @@ using Dalamud.Game.Command;
|
||||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.Plugin;
|
||||
using Dalamud.Plugin.Services;
|
||||
using ImGuiNET;
|
||||
using LLib;
|
||||
using Workshoppa.External;
|
||||
using Workshoppa.GameData;
|
||||
@ -107,6 +108,11 @@ public sealed partial class WorkshopPlugin : IDalamudPlugin
|
||||
_pluginLog.Debug($"Changing stage from {_currentStageInternal} to {value}");
|
||||
_currentStageInternal = value;
|
||||
}
|
||||
|
||||
if (value != Stage.Stopped)
|
||||
_mainWindow.Flags |= ImGuiWindowFlags.NoCollapse;
|
||||
else
|
||||
_mainWindow.Flags &= ~ImGuiWindowFlags.NoCollapse;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<Version>5.0</Version>
|
||||
<Version>5.1</Version>
|
||||
<LangVersion>11.0</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
|
Loading…
Reference in New Issue
Block a user