remove hacks
MODIFY
WalletWasabi.Fluent.Desktop/Program.cs
WalletWasabi.Fluent.Desktop/Program.cs
@@ -64,11 +64,6 @@ public class Program
{
var (uiConfig, config) = LoadOrCreateConfigs(dataDir);
- if (runGuiMinimized)
- {
- uiConfig.WindowState = WindowState.Minimized.ToString(); // If the OS started the wallet, we only want the tray icon.
- }
-
using SingleInstanceChecker singleInstanceChecker = new(config.Network);
singleInstanceChecker.EnsureSingleOrThrowAsync().GetAwaiter().GetResult();

MODIFY
WalletWasabi.Fluent/Behaviors/HideShowBehavior.cs
WalletWasabi.Fluent/Behaviors/HideShowBehavior.cs
@@ -26,7 +26,7 @@ public class HideShowBehavior : DisposingBehavior<Window>
{
if (AssociatedObject.WindowState == WindowState.Minimized)
{
- AssociatedObject.WindowState = (WindowState)Enum.Parse(typeof(WindowState), "Normal");
+ AssociatedObject.WindowState = (WindowState)Enum.Parse(typeof(WindowState), Services.UiConfig.WindowState);
}
AssociatedObject.Show();

MODIFY
WalletWasabi.Fluent/UiConfig.cs
WalletWasabi.Fluent/UiConfig.cs
@@ -86,7 +86,7 @@ public class UiConfig : ConfigBase
public string WindowState
{
get => _windowState;
- set => RaiseAndSetIfChanged(ref _windowState, value);
+ internal set => RaiseAndSetIfChanged(ref _windowState, value);
}
[JsonProperty(PropertyName = "WindowX")]

remove hacks