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