mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-26 05:32:15 +00:00
Feature/tweak stealth mode (#13963)
* Update the stealth mode description to reflect the current code changes in 2.4. * disable HMS if bambu network plugin is not installed or in stealth mode * fix build err * add hide_login_side_panel to control whether to show login panel in home page
This commit is contained in:
@@ -93,6 +93,11 @@ bool AppConfig::get_stealth_mode()
|
||||
return get_bool("stealth_mode");
|
||||
}
|
||||
|
||||
bool AppConfig::get_hide_login_side_panel()
|
||||
{
|
||||
return get_bool("hide_login_side_panel");
|
||||
}
|
||||
|
||||
void AppConfig::reset()
|
||||
{
|
||||
m_storage.clear();
|
||||
@@ -347,6 +352,9 @@ void AppConfig::set_defaults()
|
||||
if (get("stealth_mode").empty()) {
|
||||
set_bool("stealth_mode", false);
|
||||
}
|
||||
if (get("hide_login_side_panel").empty()) {
|
||||
set_bool("hide_login_side_panel", false);
|
||||
}
|
||||
if (get("allow_abnormal_storage").empty()) {
|
||||
set_bool("allow_abnormal_storage", false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user