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

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

View File

@@ -704,12 +704,7 @@ void FsView::InstallForwarder() {
void FsView::InstallFiles() { void FsView::InstallFiles() {
if (!App::GetInstallEnable()) { if (!App::GetInstallEnable()) {
App::Push<ui::OptionBox>( App::ShowEnableInstallPrompt();
"Install disabled...\n"
"Please enable installing via the install options."_i18n,
"OK"_i18n
);
return; return;
} }

View File

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