Show error box instead of regular msg if Cancel reason was error

This commit is contained in:
n00mkrad
2026-01-12 20:51:41 +01:00
parent 2fc68c60c1
commit beee67bf09

View File

@@ -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)