From 9d67c82d83148892737f487ac910c53e5d2e0d05 Mon Sep 17 00:00:00 2001 From: "Michael J. Seiferling" Date: Sat, 9 Mar 2019 09:45:44 -0600 Subject: [PATCH] Removed "Start Minimized" support #178 --- GBM/Forms/frmMain.vb | 11 ----------- GBM/Forms/frmSettings.vb | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/GBM/Forms/frmMain.vb b/GBM/Forms/frmMain.vb index c3094d9..527a737 100644 --- a/GBM/Forms/frmMain.vb +++ b/GBM/Forms/frmMain.vb @@ -53,7 +53,6 @@ Public Class frmMain WithEvents tmScanTimer As New Timer WithEvents tmRestoreCheck As New System.Timers.Timer WithEvents tmFileWatcherQueue As New System.Timers.Timer - WithEvents tmMinimizeTimer As New System.Timers.Timer Public WithEvents oProcess As New mgrProcessDetection Public WithEvents oBackup As New mgrBackup @@ -2002,10 +2001,6 @@ Public Class frmMain End Sub - Private Sub HandleMinimizeTimer() Handles tmMinimizeTimer.Elapsed - Me.WindowState = FormWindowState.Minimized - End Sub - Private Sub AutoRestoreEventProcessor(myObject As Object, ByVal myEventArgs As EventArgs) Handles tmRestoreCheck.Elapsed If eCurrentStatus <> eStatus.Paused Then AutoRestoreCheck() @@ -2195,12 +2190,6 @@ Public Class frmMain 'Unix Handler If mgrCommon.IsUnix Then Me.MinimizeBox = True - If oSettings.StartToTray Then - 'Window Managers and/or Mono will not trigger a minimize in the Load or Shown event. We need to delay it. - tmMinimizeTimer.AutoReset = False - tmMinimizeTimer.Interval = 1000 - tmMinimizeTimer.Start() - End If Else Me.gMonTray.Visible = True End If diff --git a/GBM/Forms/frmSettings.vb b/GBM/Forms/frmSettings.vb index a9e4a0e..1a35ead 100644 --- a/GBM/Forms/frmSettings.vb +++ b/GBM/Forms/frmSettings.vb @@ -361,6 +361,7 @@ Public Class frmSettings If Not File.Exists("/usr/share/applications/gbm.desktop") Then chkAutoStart.Enabled = False End If + chkStartMinimized.Enabled = False End If 'Handle Panels