Skip to content

Commit 4d04432

Browse files
committed
Only save window size/position if the Main Window is visible (fixes issue with closing from taskbar causing the next launch to show a mini window)
Closes #534
1 parent 38fec29 commit 4d04432

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CompactGUI/MainWindow.xaml.vb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ Class MainWindow : Implements INavigationWindow, INotifyPropertyChanged
9595
End Function
9696

9797
Private Sub MainWindow_Closing(sender As Object, e As CancelEventArgs)
98+
If Not IsVisible Then Return
9899
SettingsHandler.AppSettings.WindowState = WindowState
99100
SettingsHandler.AppSettings.WindowWidth = If(Width > 0, Width, 1300)
100101
SettingsHandler.AppSettings.WindowHeight = If(Height > 0, Height, 700)

0 commit comments

Comments
 (0)