mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
Prevent double connection check
This commit is contained in:
parent
3cbc35143b
commit
25a358cd20
1 changed files with 11 additions and 10 deletions
|
@ -313,8 +313,8 @@ sub connect {
|
||||||
$self->{serial_speed_combobox}->GetValue,
|
$self->{serial_speed_combobox}->GetValue,
|
||||||
);
|
);
|
||||||
if (!$res) {
|
if (!$res) {
|
||||||
$self->set_status("Connection failed");
|
$self->set_status("Connection failed. Check serial port and speed.");
|
||||||
}
|
} else {
|
||||||
if ($self->sender->wait_connected) {
|
if ($self->sender->wait_connected) {
|
||||||
$self->set_status("Printer is online. You can now start printing from the queue on the right.");
|
$self->set_status("Printer is online. You can now start printing from the queue on the right.");
|
||||||
$self->status_timer->Start(STATUS_TIMER_INTERVAL, wxTIMER_CONTINUOUS);
|
$self->status_timer->Start(STATUS_TIMER_INTERVAL, wxTIMER_CONTINUOUS);
|
||||||
|
@ -325,6 +325,7 @@ sub connect {
|
||||||
} else {
|
} else {
|
||||||
$self->set_status("Connection failed. Check serial port and speed.");
|
$self->set_status("Connection failed. Check serial port and speed.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$self->_update_connection_controls;
|
$self->_update_connection_controls;
|
||||||
$self->reload_jobs;
|
$self->reload_jobs;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue