mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-10 14:45:41 +12:00
Show errors if popup notifications are not none
This commit is contained in:
parent
958547d055
commit
ce138da0ac
1 changed files with 3 additions and 8 deletions
|
@ -269,15 +269,10 @@ 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:
|
Program.MainForm.niTray.ShowBalloonTip(5000, "ShareX - " + Resources.TaskManager_task_UploadCompleted_Error,
|
||||||
if (Program.MainForm.niTray.Visible)
|
errors, ToolTipIcon.Error);
|
||||||
{
|
|
||||||
Program.MainForm.niTray.ShowBalloonTip(5000, "ShareX - " + Resources.TaskManager_task_UploadCompleted_Error,
|
|
||||||
errors, ToolTipIcon.Error);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue