Fixed prevent shutdown while minimized bug with issue #77
This commit is contained in:
@@ -1649,7 +1649,8 @@ Public Class frmMain
|
|||||||
ShutdownApp()
|
ShutdownApp()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Intercept Exit
|
Select Case e.CloseReason
|
||||||
|
Case CloseReason.UserClosing
|
||||||
If bShutdown = False Then
|
If bShutdown = False Then
|
||||||
e.Cancel = True
|
e.Cancel = True
|
||||||
If Not mgrCommon.IsUnix Then
|
If Not mgrCommon.IsUnix Then
|
||||||
@@ -1659,6 +1660,10 @@ Public Class frmMain
|
|||||||
Me.ShowInTaskbar = False
|
Me.ShowInTaskbar = False
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
Case CloseReason.TaskManagerClosing, CloseReason.WindowsShutDown
|
||||||
|
'Do nothing and let the app close without warning
|
||||||
|
End Select
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub AutoRestoreEventProcessor(myObject As Object, ByVal myEventArgs As EventArgs) Handles tmRestoreCheck.Elapsed
|
Private Sub AutoRestoreEventProcessor(myObject As Object, ByVal myEventArgs As EventArgs) Handles tmRestoreCheck.Elapsed
|
||||||
|
|||||||
Reference in New Issue
Block a user