#2499: Also respect DisableNotifications option

This commit is contained in:
Jaex 2017-05-14 02:38:17 +03:00
parent c8f9526ce7
commit bddffbe7e8

View file

@ -682,9 +682,11 @@ public static void OpenScreenColorPicker(TaskSettings taskSettings = null)
{
Program.MainForm.niTray.Tag = null;
//Only show the balloon notification if BalloonTip is selected in settings
if (taskSettings.GeneralSettings.PopUpNotification != PopUpNotificationType.None)
Program.MainForm.niTray.ShowBalloonTip(3000, "ShareX", string.Format(Resources.TaskHelpers_OpenQuickScreenColorPicker_Copied_to_clipboard___0_, text), ToolTipIcon.Info);
if (!taskSettings.AdvancedSettings.DisableNotifications && taskSettings.GeneralSettings.PopUpNotification != PopUpNotificationType.None)
{
Program.MainForm.niTray.ShowBalloonTip(3000, "ShareX",
string.Format(Resources.TaskHelpers_OpenQuickScreenColorPicker_Copied_to_clipboard___0_, text), ToolTipIcon.Info);
}
}
}
}