mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
#336, let menu observe -check_upgrade=0
This commit is contained in:
parent
9733e4849f
commit
d0ed7aa288
3 changed files with 8 additions and 7 deletions
|
@ -316,8 +316,7 @@ namespace PersistentWindows.SystrayShell
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
systrayForm = new SystrayForm();
|
systrayForm = new SystrayForm(check_upgrade);
|
||||||
systrayForm.enableUpgradeNotice = check_upgrade;
|
|
||||||
systrayForm.autoUpgrade = auto_upgrade;
|
systrayForm.autoUpgrade = auto_upgrade;
|
||||||
|
|
||||||
if (relaunch)
|
if (relaunch)
|
||||||
|
|
|
@ -168,10 +168,6 @@ namespace PersistentWindows.SystrayShell
|
||||||
// pause/resume upgrade notice
|
// pause/resume upgrade notice
|
||||||
//this.upgradeNoticeMenuItem.Text = "Disable upgrade notice";
|
//this.upgradeNoticeMenuItem.Text = "Disable upgrade notice";
|
||||||
this.upgradeNoticeMenuItem.Click += new System.EventHandler(this.PauseResumeUpgradeNotice);
|
this.upgradeNoticeMenuItem.Click += new System.EventHandler(this.PauseResumeUpgradeNotice);
|
||||||
if (this.enableUpgradeNotice)
|
|
||||||
this.upgradeNoticeMenuItem.Text = "Disable upgrade notice";
|
|
||||||
else
|
|
||||||
this.upgradeNoticeMenuItem.Text = "Enable upgrade notice";
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// exitToolStripMenuItem
|
// exitToolStripMenuItem
|
||||||
|
|
|
@ -43,10 +43,16 @@ namespace PersistentWindows.SystrayShell
|
||||||
|
|
||||||
private Dictionary<string, bool> upgradeDownloaded = new Dictionary<string, bool>();
|
private Dictionary<string, bool> upgradeDownloaded = new Dictionary<string, bool>();
|
||||||
|
|
||||||
public SystrayForm()
|
public SystrayForm(bool enable_upgrade_notice)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
|
enableUpgradeNotice = enable_upgrade_notice;
|
||||||
|
if (enableUpgradeNotice)
|
||||||
|
upgradeNoticeMenuItem.Text = "Disable upgrade notice";
|
||||||
|
else
|
||||||
|
upgradeNoticeMenuItem.Text = "Enable upgrade notice";
|
||||||
|
|
||||||
clickDelayTimer = new System.Timers.Timer(1000);
|
clickDelayTimer = new System.Timers.Timer(1000);
|
||||||
clickDelayTimer.Elapsed += ClickTimerCallBack;
|
clickDelayTimer.Elapsed += ClickTimerCallBack;
|
||||||
clickDelayTimer.SynchronizingObject = this.contextMenuStripSysTray;
|
clickDelayTimer.SynchronizingObject = this.contextMenuStripSysTray;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue