Revert unrelated Stealth mode and cloud login changes

This commit is contained in:
SoftFever
2026-08-27 23:13:41 +08:00
parent 1750c52211
commit a1110b0050
4 changed files with 9 additions and 60 deletions
+6 -22
View File
@@ -3429,22 +3429,14 @@ void MainFrame::init_menubar_as_editor()
info_dlg.ShowModal();
return;
}
if (wxGetApp().app_config->get_stealth_mode()) {
MessageDialog info_dlg(this,
_L("Stealth mode is on, so Orca Cloud syncing is switched off. "
"Turn Stealth mode off in Preferences to sync your presets."),
_L("Sync Presets"), wxOK | wxICON_INFORMATION);
info_dlg.ShowModal();
return;
}
if (m_plater)
m_plater->get_notification_manager()->push_notification(
into_u8(_L("Syncing presets from cloud\u2026")));
wxGetApp().restart_sync_user_preset();
}, "", nullptr,
// Stays ENABLED whatever the cloud state: both refusals above name their reason, and a
// greyed-out item names none. A user who could not sync had no way to find out why.
[]() { return true; }, this);
[this]() {
return wxGetApp().is_user_login() && !wxGetApp().app_config->get_stealth_mode();
}, this);
top_menu->AppendSeparator();
append_menu_item(
@@ -3574,22 +3566,14 @@ void MainFrame::init_menubar_as_editor()
info_dlg.ShowModal();
return;
}
if (wxGetApp().app_config->get_stealth_mode()) {
MessageDialog info_dlg(this,
_L("Stealth mode is on, so Orca Cloud syncing is switched off. "
"Turn Stealth mode off in Preferences to sync your presets."),
_L("Sync Presets"), wxOK | wxICON_INFORMATION);
info_dlg.ShowModal();
return;
}
if (m_plater)
m_plater->get_notification_manager()->push_notification(
into_u8(_L("Syncing presets from cloud\u2026")));
wxGetApp().restart_sync_user_preset();
}, "", nullptr,
// Stays ENABLED whatever the cloud state: both refusals above name their reason, and a
// greyed-out item names none. A user who could not sync had no way to find out why.
[]() { return true; }, this);
[this]() {
return wxGetApp().is_user_login() && !wxGetApp().app_config->get_stealth_mode();
}, this);
fileMenu->AppendSeparator();
append_menu_item(