ui: Disallow checking for updates while emulation active (#3886)
* Disallow updating while game is running * Reflected change on Avalonia * Git has gone wonky * Fix accidental indent
This commit is contained in:
parent
17a1cab5d2
commit
5c0fb0cec3
2 changed files with 4 additions and 0 deletions
|
@ -266,6 +266,7 @@ namespace Ryujinx.Ava.Ui.Windows
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CanUpdate = false;
|
||||||
ViewModel.LoadHeading = string.IsNullOrWhiteSpace(titleName) ? string.Format(LocaleManager.Instance["LoadingHeading"], AppHost.Device.Application.TitleName) : titleName;
|
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;
|
ViewModel.TitleName = string.IsNullOrWhiteSpace(titleName) ? AppHost.Device.Application.TitleName : titleName;
|
||||||
|
|
||||||
|
@ -371,6 +372,7 @@ namespace Ryujinx.Ava.Ui.Windows
|
||||||
ViewModel.ShowContent = true;
|
ViewModel.ShowContent = true;
|
||||||
ViewModel.ShowLoadProgress = false;
|
ViewModel.ShowLoadProgress = false;
|
||||||
ViewModel.IsLoadingIndeterminate = false;
|
ViewModel.IsLoadingIndeterminate = false;
|
||||||
|
CanUpdate = true;
|
||||||
Cursor = Cursor.Default;
|
Cursor = Cursor.Default;
|
||||||
|
|
||||||
if (MainContent.Content != _mainViewContent)
|
if (MainContent.Content != _mainViewContent)
|
||||||
|
|
|
@ -862,6 +862,7 @@ namespace Ryujinx.Ui
|
||||||
|
|
||||||
_gameLoaded = true;
|
_gameLoaded = true;
|
||||||
_actionMenu.Sensitive = true;
|
_actionMenu.Sensitive = true;
|
||||||
|
UpdateMenuItem.Sensitive = false;
|
||||||
|
|
||||||
_lastScannedAmiiboId = "";
|
_lastScannedAmiiboId = "";
|
||||||
|
|
||||||
|
@ -1333,6 +1334,7 @@ namespace Ryujinx.Ui
|
||||||
|
|
||||||
_pauseEmulation.Sensitive = false;
|
_pauseEmulation.Sensitive = false;
|
||||||
_resumeEmulation.Sensitive = false;
|
_resumeEmulation.Sensitive = false;
|
||||||
|
UpdateMenuItem.Sensitive = true;
|
||||||
RendererWidget?.Exit();
|
RendererWidget?.Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue