FIX: [STUDIO-2844] use user presets only if login

Change-Id: Iec2dc9a77be8354ff1d5e0e4a60f79006ee682d3
This commit is contained in:
chunmao.guo 2023-05-23 10:19:49 +08:00 committed by Lane.Wei
parent ddabc14676
commit 1b0b14c0f2
4 changed files with 27 additions and 32 deletions

View file

@ -622,7 +622,7 @@ wxBoxSizer *PreferencesDialog::create_item_checkbox(wxString title, wxWindow *pa
if (param == "sync_user_preset") {
bool sync = app_config->get("sync_user_preset") == "true" ? true : false;
if (sync) {
wxGetApp().start_sync_user_preset(true);
wxGetApp().start_sync_user_preset();
} else {
wxGetApp().stop_sync_user_preset();
}