File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 7
7
'
8
8
' This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY
9
9
10
+ Imports Windows.ApplicationModel.AppService
10
11
Imports WinNUT_Client_Common
11
12
12
13
Public Class WinNUT
@@ -408,7 +409,9 @@ Public Class WinNUT
408
409
End Sub
409
410
410
411
Private Sub WinNUT_FormClosing(sender As Object , e As FormClosingEventArgs) Handles MyBase .FormClosing
411
- If Arr_Reg_Key.Item( "CloseToTray" ) = True And Arr_Reg_Key.Item( "MinimizeToTray" ) = True Then
412
+ LogFile.LogTracing( "Received FormClosing event. Reason: " + e.CloseReason.ToString(), LogLvl.LOG_NOTICE, Me )
413
+
414
+ If e.CloseReason = CloseReason.UserClosing AndAlso Arr_Reg_Key.Item( "CloseToTray" ) = True And Arr_Reg_Key.Item( "MinimizeToTray" ) = True Then
412
415
LogFile.LogTracing( "Update Icon" , LogLvl.LOG_DEBUG, Me )
413
416
UpdateIcon_NotifyIcon()
414
417
LogFile.LogTracing( "Minimize Main Gui To Notify Icon" , LogLvl.LOG_DEBUG, Me )
You can’t perform that action at this time.
0 commit comments