Show errors if popup notifications are not none

This commit is contained in:
mcored 2014-12-24 09:05:43 +08:00
parent 958547d055
commit ce138da0ac

View file

@ -269,16 +269,11 @@ private static void task_UploadCompleted(UploadTask task)
Helpers.PlaySoundAsync(Resources.ErrorSound); Helpers.PlaySoundAsync(Resources.ErrorSound);
} }
switch (info.TaskSettings.GeneralSettings.PopUpNotification) if (info.TaskSettings.GeneralSettings.PopUpNotification != PopUpNotificationType.None && Program.MainForm.niTray.Visible)
{
case PopUpNotificationType.BalloonTip:
if (Program.MainForm.niTray.Visible)
{ {
Program.MainForm.niTray.ShowBalloonTip(5000, "ShareX - " + Resources.TaskManager_task_UploadCompleted_Error, Program.MainForm.niTray.ShowBalloonTip(5000, "ShareX - " + Resources.TaskManager_task_UploadCompleted_Error,
errors, ToolTipIcon.Error); errors, ToolTipIcon.Error);
} }
break;
}
} }
} }
else else