[Application] Update CheckUnArFailed method to use Dispatcher for UI updates

This commit is contained in:
2025-07-23 03:22:59 +01:00
parent dcade0fcc0
commit 7e009c7d66

View File

@@ -145,11 +145,14 @@ public sealed class SettingsViewModel : ViewModelBase
void CheckUnArFailed(object sender, ErrorEventArgs args) void CheckUnArFailed(object sender, ErrorEventArgs args)
{ {
UnArVersion = ""; Dispatcher.UIThread.Post(() =>
UnArPath = ""; {
UnArVersion = "";
UnArPath = "";
_ = MessageBoxManager.GetMessageBoxStandard(Localization.Error, args.Message, ButtonEnum.Ok, Icon.Error) _ = MessageBoxManager.GetMessageBoxStandard(Localization.Error, args.Message, ButtonEnum.Ok, Icon.Error)
.ShowWindowDialogAsync(_view); .ShowWindowDialogAsync(_view);
});
} }
void CheckUnArFinished(object sender, MessageEventArgs args) => Dispatcher.UIThread.Post(() => void CheckUnArFinished(object sender, MessageEventArgs args) => Dispatcher.UIThread.Post(() =>