private async Task RunAction(Manifest.ManifestAction action) { Accent old = SetTheme(accentBusy); RefreshProgress(UIState.Busy); SetUIState(false); try { await action.Run(repository, action.passArguments ? App.mArgs : new string[] { }); } catch (Exception ex) { MessageBox.Show(Text.t("run_error", ex.Message)); } finally { SetUIState(true); SetTheme(old); RefreshProgress(UIState.OK); } }