Skip to content

Commit

Permalink
Fix parsing window position
Browse files Browse the repository at this point in the history
  • Loading branch information
j committed Jul 12, 2024
1 parent 3c375b5 commit fab5e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fab5e09

Please sign in to comment.