Fixed some long standing system tray bugs
This commit is contained in:
@@ -1037,11 +1037,15 @@ Public Class frmMain
|
||||
Me.ShowInTaskbar = True
|
||||
Me.Focus()
|
||||
Else
|
||||
If Me.CanFocus Then
|
||||
bShowToggle = False
|
||||
wState = Me.WindowState
|
||||
Me.WindowState = FormWindowState.Minimized
|
||||
Me.ShowInTaskbar = False
|
||||
Me.Visible = False
|
||||
Else
|
||||
gMonTray.ShowBalloonTip(5000, App_NameLong, App_ErrorFocus, ToolTipIcon.Info)
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -1147,6 +1151,7 @@ Public Class frmMain
|
||||
If Not bGameDetected Then
|
||||
gMonTrayMon.Enabled = False
|
||||
gMonTrayShow.Enabled = False
|
||||
gMonTrayExit.Enabled = False
|
||||
End If
|
||||
bMenuEnabled = False
|
||||
Else
|
||||
@@ -1162,6 +1167,7 @@ Public Class frmMain
|
||||
gMonTraySettings.Enabled = True
|
||||
gMonTrayMon.Enabled = True
|
||||
gMonTrayShow.Enabled = True
|
||||
gMonTrayExit.Enabled = True
|
||||
bMenuEnabled = True
|
||||
End If
|
||||
End Sub
|
||||
@@ -1631,13 +1637,6 @@ Public Class frmMain
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub gMonTray_BalloonTipClicked(sender As System.Object, e As System.EventArgs) Handles gMonTray.BalloonTipClicked
|
||||
bShowToggle = True
|
||||
Me.Visible = True
|
||||
Me.ShowInTaskbar = True
|
||||
Me.Focus()
|
||||
End Sub
|
||||
|
||||
Private Sub btnCancelOperation_Click(sender As Object, e As EventArgs) Handles btnCancelOperation.Click
|
||||
OperationCancel()
|
||||
End Sub
|
||||
|
||||
Generated
+9
@@ -78,6 +78,15 @@ Namespace My.Resources
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized string similar to GBM is busy with an open window on your desktop..
|
||||
'''</summary>
|
||||
Friend ReadOnly Property App_ErrorFocus() As String
|
||||
Get
|
||||
Return ResourceManager.GetString("App_ErrorFocus", resourceCulture)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized string similar to This function is currently not available on a Unix based operating system..
|
||||
'''</summary>
|
||||
|
||||
@@ -1798,4 +1798,7 @@
|
||||
<data name="mgrBackup_7zFatalError" xml:space="preserve">
|
||||
<value>[PARAM] backup failed due to an error.</value>
|
||||
</data>
|
||||
<data name="App_ErrorFocus" xml:space="preserve">
|
||||
<value>GBM is busy with an open window on your desktop.</value>
|
||||
</data>
|
||||
</root>
|
||||
Reference in New Issue
Block a user