install: add enable prompt to filebrowser and gc menu when an install option is clicked whilst disabled.

This commit is contained in:
ITotalJustice committed 2025-08-02 18:41:52 +01:00
1 parent ed02b0f260
commit fb3ad260da
2 files changed
+2 -11

No files matched your search

+1 -6
View File
@@ -704,12 +704,7 @@ void FsView::InstallForwarder() {
void FsView::InstallFiles() {
if (!App::GetInstallEnable()) {
App::Push<ui::OptionBox>(
"Install disabled...\n"
"Please enable installing via the install options."_i18n,
"OK"_i18n
);
App::ShowEnableInstallPrompt();
return;
}
+1 -5
View File
@@ -376,11 +376,7 @@ Menu::Menu(u32 flags) : MenuBase{"GameCard"_i18n, flags} {
if (m_option_index == 0) {
if (!App::GetInstallEnable()) {
App::Push<ui::OptionBox>(
"Install disabled...\n"
"Please enable installing via the install options."_i18n,
"OK"_i18n
);
App::ShowEnableInstallPrompt();
} else {
log_write("[GC] doing install A\n");
App::Push<ui::ProgressBox>(m_icon, "Installing "_i18n, m_entries[m_entry_index].lang_entry.name, [this](auto pbox) -> Result {