Fix a regression where the login panel is displayed even when the plugin is disabled (#12185)

Update GUI_App to show or hide the login panel based on the "installed_networking" setting.
This commit is contained in:
SoftFever
2026-02-06 09:18:52 +08:00
committed by GitHub
parent 98cb91110e
commit 5d121b12ee
3 changed files with 23 additions and 15 deletions

View File

@@ -4439,7 +4439,11 @@ void GUI_App::get_login_info()
GUI::wxGetApp().run_script(strJS);
}
}
mainframe->m_webview->SetLoginPanelVisibility(true);
if(app_config->get_bool("installed_networking")) {
mainframe->m_webview->SetLoginPanelVisibility(true);
} else {
mainframe->m_webview->SetLoginPanelVisibility(false);
}
}
}