minor code refactoring

This commit is contained in:
Kang Yu 2024-06-27 22:14:34 -07:00
parent 4965b9b82b
commit d2a5f206e4
2 changed files with 4 additions and 4 deletions

View file

@ -319,10 +319,6 @@ namespace PersistentWindows.SystrayShell
systrayForm = new SystrayForm();
systrayForm.enableUpgradeNotice = check_upgrade;
systrayForm.autoUpgrade = auto_upgrade;
if (check_upgrade)
systrayForm.upgradeNoticeMenuItem.Text = "Disable upgrade notice";
else
systrayForm.upgradeNoticeMenuItem.Text = "Enable upgrade notice";
if (relaunch)
{

View file

@ -168,6 +168,10 @@ namespace PersistentWindows.SystrayShell
// pause/resume upgrade notice
//this.upgradeNoticeMenuItem.Text = "Disable upgrade notice";
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