mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
[Application] Update CheckUnArFailed method to use Dispatcher for UI updates
This commit is contained in:
@@ -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(() =>
|
||||||
|
|||||||
Reference in New Issue
Block a user