mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-19 21:51:06 +00:00
Show "No Available Printers" Instead of an Empty Printer Dropdown (#16611)
* Show "No Available Printers" Instead of an Empty Printer Dropdown A ComboBox with no items opened a one-row-high popup that DropDown never paints, leaving a blank strip with stale pixels under the box. Don't open the list when it is empty, and label the printer box in the print and send-to-printer dialogs when no printer is available. * Add "No Available Printers" to the Translation Template
This commit is contained in:
1 parent
24cf1c6bcc
commit
a315a96c5c
4 files changed
+8
-5
No files matched your search
@@ -4087,7 +4087,7 @@ void SelectMachineDialog::update_user_printer()
|
||||
{
|
||||
m_printer_last_select = "";
|
||||
update_select_layout(nullptr);
|
||||
m_printer_box->GetPrinterComboBox()->SetTextLabel("");
|
||||
m_printer_box->GetPrinterComboBox()->SetValue(_L("No available printers"));
|
||||
}
|
||||
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "for send task, current printer id = " << m_printer_last_select << std::endl;
|
||||
|
||||
Reference in new issue
Block a user