mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Do not connect to default BBL device during app startup (#10214)
* Do not connect to default device during app startup * Connect to last selected machine automatically even if it's lan machine Simplify default machine connection logic * Select last machine automatically when available * Check for LAN connection state after updating combobox selection. This matches the logic of `SendPrint.cpp`. * Avoid showing same error message multiple times until next connection attempt. --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
@@ -917,6 +917,11 @@ void SendToPrinterDialog::update_user_printer()
|
||||
m_comboBox_printer->Set(machine_list_name);
|
||||
|
||||
MachineObject* obj = dev->get_selected_machine();
|
||||
if (!obj) {
|
||||
dev->load_last_machine();
|
||||
obj = dev->get_selected_machine();
|
||||
}
|
||||
|
||||
if (obj) {
|
||||
m_printer_last_select = obj->dev_id;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user