ENH: refine UI of sending 3rd-party printer task

Change-Id: I47cd1682a495eb7aa6f230dfa41ee4f5c321fc72
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
tao.jin 2022-10-14 19:01:08 +08:00 committed by Lane.Wei
parent 3992e25c93
commit a84cf46699
11 changed files with 217 additions and 37 deletions

View file

@ -388,6 +388,19 @@ std::string SavePresetDialog::get_name(Preset::Type type)
return "";
}
void SavePresetDialog::input_name_from_other(std::string new_preset_name) {
//only work for one-item
Item* curr_item = m_items[0];
curr_item->m_input_ctrl->SetValue(new_preset_name);
}
void SavePresetDialog::confirm_from_other() {
for (Item *item : m_items) {
item->accept();
if (item->type() == Preset::TYPE_PRINTER) update_physical_printers(item->preset_name());
}
}
// BBS: add project relate
bool SavePresetDialog::get_save_to_project_selection(Preset::Type type)
{