mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-02-24 04:00:49 +01:00
Show error box instead of regular msg if Cancel reason was error
This commit is contained in:
@@ -305,7 +305,10 @@ namespace Flowframes
|
||||
Application.Exit();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(reason) && !noMsgBox)
|
||||
UiUtils.ShowMessageBox($"Canceled:\n\n{reason}");
|
||||
{
|
||||
bool err = reason.Lower().Contains("error");
|
||||
UiUtils.ShowMessageBox($"Canceled:\n\n{reason}", type: err ? UiUtils.MessageType.Error : UiUtils.MessageType.Message, monospace: err);
|
||||
}
|
||||
}
|
||||
|
||||
public static async Task Cleanup(bool ignoreKeepSetting = false, int retriesLeft = 3, bool isRetry = false)
|
||||
|
||||
Reference in New Issue
Block a user