From fab5e092c5255ac383ae6f5f53818030b132159a Mon Sep 17 00:00:00 2001 From: j Date: Fri, 12 Jul 2024 19:14:04 +1000 Subject: [PATCH] Fix parsing window position --- MainWindow.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index c01aafc..f904411 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -216,8 +216,8 @@ void loadWindowState() var windowInfo = File.ReadAllText(windowStateFile()); if (string.IsNullOrEmpty(windowInfo)) { return; } var spl = windowInfo.Split(' '); - int left = int.Parse(spl[0]); - int top = int.Parse(spl[1]); + var left = double.Parse(spl[0]); + var top = double.Parse(spl[1]); bool compact = bool.Parse(spl[2]); string vis = spl[3]; if ((left + Width) > System.Windows.SystemParameters.VirtualScreenWidth || (top + Height) > System.Windows.SystemParameters.VirtualScreenHeight)