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.Icon = CType(resources.GetObject("gMonTray.Icon"), System.Drawing.Icon)
|
||||
Me.gMonTray.Text = "GBM"
|
||||
Me.gMonTray.Visible = True
|
||||
'
|
||||
'gMonTrayMenu
|
||||
'
|
||||
|
||||
@@ -2185,12 +2185,12 @@ Public Class frmMain
|
||||
|
||||
'Windows and Linux require different settings for the system tray
|
||||
If mgrCommon.IsUnix Then
|
||||
Me.gMonTray.Visible = False
|
||||
Me.MinimizeBox = True
|
||||
If oSettings.StartToTray Then
|
||||
Me.WindowState = FormWindowState.Minimized
|
||||
End If
|
||||
Else
|
||||
Me.gMonTray.Visible = True
|
||||
If oSettings.StartToTray Then
|
||||
bShowToggle = False
|
||||
Me.Visible = False
|
||||
|
||||
Reference in New Issue
Block a user