diff --git a/Torch.Server/TorchConfig.cs b/Torch.Server/TorchConfig.cs index 2c90848..25a2452 100644 --- a/Torch.Server/TorchConfig.cs +++ b/Torch.Server/TorchConfig.cs @@ -63,8 +63,8 @@ namespace Torch.Server public bool EnableWhitelist { get; set; } = false; public HashSet Whitelist { get; set; } = new HashSet(); - internal Point WindowSize { get; set; } = new Point(800, 600); - internal Point WindowPosition { get; set; } = new Point(); + public Point WindowSize { get; set; } = new Point(800, 600); + public Point WindowPosition { get; set; } = new Point(); public string LastUsedTheme { get; set; } = "Torch Theme"; diff --git a/Torch.Server/Views/TorchUI.xaml.cs b/Torch.Server/Views/TorchUI.xaml.cs index 29a8fdf..200bb41 100644 --- a/Torch.Server/Views/TorchUI.xaml.cs +++ b/Torch.Server/Views/TorchUI.xaml.cs @@ -102,6 +102,8 @@ namespace Torch.Server var newPos = new Point((int)Left, (int)Top); _config.WindowPosition = newPos; + _config.Save(); //you idiot + if (_server?.State == ServerState.Running) _server.Stop();