Removed TrayTextMoreInfo advanced option instead using DevMode option for it

This commit is contained in:
Jaex 2020-10-20 03:53:05 +03:00
parent 22efe74511
commit 58b010d9c5
2 changed files with 9 additions and 12 deletions

View file

@ -178,9 +178,6 @@ public ApplicationConfig()
[Editor(typeof(ExeFileNameEditor), typeof(UITypeEditor))]
public string BrowserPath { get; set; }
[Category("Application"), DefaultValue(false), Description("Show version and build info in tray text so if you are running more than one ShareX build you can differentiate them in tray bar.")]
public bool TrayTextMoreInfo { get; set; }
[Category("Application"), DefaultValue(false), Description("Save settings after task completed but only if there is no other active tasks.")]
public bool SaveSettingsAfterTaskCompleted { get; set; }

View file

@ -975,15 +975,6 @@ private void UpdateActionsMenu(string filePath)
private void AfterApplicationSettingsJobs()
{
if (Program.Settings.TrayTextMoreInfo)
{
niTray.Text = Program.TitleLong;
}
else
{
niTray.Text = "ShareX";
}
HotkeyRepeatLimit = Program.Settings.HotkeyRepeatLimit;
HelpersOptions.CurrentProxy = Program.Settings.ProxySettings;
@ -1010,6 +1001,15 @@ private void AfterApplicationSettingsJobs()
niTray.Icon = ShareXResources.Icon;
}
if (HelpersOptions.DevMode)
{
niTray.Text = Program.TitleLong;
}
else
{
niTray.Text = "ShareX";
}
tsmiRestartAsAdmin.Visible = HelpersOptions.DevMode && !Helpers.IsAdministrator();
#if RELEASE