diff options
author | Ethan Page <88117372+ethanriverpage@users.noreply.github.com> | 2022-12-04 14:17:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-04 20:17:11 +0100 |
commit | 5c0fb0cec30028a155a48ed0b9569abc6ec4c13b (patch) | |
tree | 423a81936f6d79cc92abfd537a4939d4e98e6906 | |
parent | 17a1cab5d29787f3b41f40a69b530dae4e3cb25f (diff) |
ui: Disallow checking for updates while emulation active (#3886)1.1.422
* Disallow updating while game is running
* Reflected change on Avalonia
* Git has gone wonky
* Fix accidental indent
-rw-r--r-- | Ryujinx.Ava/Ui/Windows/MainWindow.axaml.cs | 2 | ||||
-rw-r--r-- | Ryujinx/Ui/MainWindow.cs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Ryujinx.Ava/Ui/Windows/MainWindow.axaml.cs b/Ryujinx.Ava/Ui/Windows/MainWindow.axaml.cs index c0a94154..a9da8d7d 100644 --- a/Ryujinx.Ava/Ui/Windows/MainWindow.axaml.cs +++ b/Ryujinx.Ava/Ui/Windows/MainWindow.axaml.cs @@ -266,6 +266,7 @@ namespace Ryujinx.Ava.Ui.Windows return; } + CanUpdate = false; ViewModel.LoadHeading = string.IsNullOrWhiteSpace(titleName) ? string.Format(LocaleManager.Instance["LoadingHeading"], AppHost.Device.Application.TitleName) : titleName; ViewModel.TitleName = string.IsNullOrWhiteSpace(titleName) ? AppHost.Device.Application.TitleName : titleName; @@ -371,6 +372,7 @@ namespace Ryujinx.Ava.Ui.Windows ViewModel.ShowContent = true; ViewModel.ShowLoadProgress = false; ViewModel.IsLoadingIndeterminate = false; + CanUpdate = true; Cursor = Cursor.Default; if (MainContent.Content != _mainViewContent) diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs index 9f9016b9..5216c774 100644 --- a/Ryujinx/Ui/MainWindow.cs +++ b/Ryujinx/Ui/MainWindow.cs @@ -862,6 +862,7 @@ namespace Ryujinx.Ui _gameLoaded = true; _actionMenu.Sensitive = true; + UpdateMenuItem.Sensitive = false; _lastScannedAmiiboId = ""; @@ -1333,6 +1334,7 @@ namespace Ryujinx.Ui _pauseEmulation.Sensitive = false; _resumeEmulation.Sensitive = false; + UpdateMenuItem.Sensitive = true; RendererWidget?.Exit(); } |