FIX: Update the alias of imported presets

Jira: STUDIO-12801

Change-Id: I7583a2022a0f565103953ee0ca742593769da81f
(cherry picked from commit cb470ae21279a555c7f4718673d83e3818b46bf0)
This commit is contained in:
maosheng.wei
2025-07-23 15:15:27 +08:00
committed by Noisyfox
parent f60a6f8490
commit 0581fac6e6
3 changed files with 30 additions and 8 deletions

View File

@@ -592,7 +592,7 @@ public:
const std::string& get_preset_name_by_alias(const std::string& alias) const;
const std::string* get_preset_name_renamed(const std::string &old_name) const;
bool is_alias_exist(const std::string &alias, Preset* preset = nullptr);
void set_printer_hold_alias(const std::string &alias, Preset &preset);
void set_printer_hold_alias(const std::string &alias, Preset &preset, bool remove = false);
// used to update preset_choice from Tab
const std::deque<Preset>& get_presets() const { return m_presets; }