Possible fix for randomly missing tray icon during startup
This commit is contained in:
Generated
+1
@@ -106,6 +106,7 @@ Partial Class frmMain
|
|||||||
Me.gMonTray.ContextMenuStrip = Me.gMonTrayMenu
|
Me.gMonTray.ContextMenuStrip = Me.gMonTrayMenu
|
||||||
Me.gMonTray.Icon = CType(resources.GetObject("gMonTray.Icon"), System.Drawing.Icon)
|
Me.gMonTray.Icon = CType(resources.GetObject("gMonTray.Icon"), System.Drawing.Icon)
|
||||||
Me.gMonTray.Text = "GBM"
|
Me.gMonTray.Text = "GBM"
|
||||||
|
Me.gMonTray.Visible = True
|
||||||
'
|
'
|
||||||
'gMonTrayMenu
|
'gMonTrayMenu
|
||||||
'
|
'
|
||||||
|
|||||||
@@ -2185,12 +2185,12 @@ Public Class frmMain
|
|||||||
|
|
||||||
'Windows and Linux require different settings for the system tray
|
'Windows and Linux require different settings for the system tray
|
||||||
If mgrCommon.IsUnix Then
|
If mgrCommon.IsUnix Then
|
||||||
|
Me.gMonTray.Visible = False
|
||||||
Me.MinimizeBox = True
|
Me.MinimizeBox = True
|
||||||
If oSettings.StartToTray Then
|
If oSettings.StartToTray Then
|
||||||
Me.WindowState = FormWindowState.Minimized
|
Me.WindowState = FormWindowState.Minimized
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Me.gMonTray.Visible = True
|
|
||||||
If oSettings.StartToTray Then
|
If oSettings.StartToTray Then
|
||||||
bShowToggle = False
|
bShowToggle = False
|
||||||
Me.Visible = False
|
Me.Visible = False
|
||||||
|
|||||||
Reference in New Issue
Block a user