FIX: [STUDIO-2071] thread safe when deleting user presets from cloud

Change-Id: I0cce7adc9e0781d38d0b1aa716b2c5f7d43e8426
This commit is contained in:
chunmao.guo 2023-01-28 17:11:30 +08:00 committed by Lane.Wei
parent 30bb96aa47
commit 96d6ec699c
2 changed files with 21 additions and 3 deletions

View file

@ -456,8 +456,10 @@ public:
bool checked_tab(Tab* tab);
//BBS: add preset combox re-active logic
void load_current_presets(bool active_preset_combox = false, bool check_printer_presets = true);
std::vector<std::string>& get_delete_cache_presets();
std::vector<std::string> &get_delete_cache_presets();
std::vector<std::string> get_delete_cache_presets_lock();
void delete_preset_from_cloud(std::string setting_id);
void preset_deleted_from_cloud(std::string setting_id);
wxString current_language_code() const { return m_wxLocale->GetCanonicalName(); }
// Translate the language code to a code, for which Prusa Research maintains translations. Defaults to "en_US".