mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
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:
parent
3992e25c93
commit
a84cf46699
11 changed files with 217 additions and 37 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue