mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: move network hold to MainFrame
jira: [STUDIO-10994] Change-Id: I2c30ba3b0f17d52079332634a9a2dd138859e083 (cherry picked from commit 506e82cb02a79d97a30effde53fe85c7d278858c)
This commit is contained in:
@@ -63,7 +63,6 @@ bool SyncAmsInfoDialog::Show(bool show)
|
||||
}
|
||||
// set default value when show this dialog
|
||||
wxGetApp().UpdateDlgDarkUI(this);
|
||||
wxGetApp().reset_to_active();
|
||||
set_default(true);
|
||||
reinit_dialog();
|
||||
update_user_machine_list();
|
||||
@@ -2369,7 +2368,6 @@ void SyncAmsInfoDialog::update_printer_combobox(wxCommandEvent &event)
|
||||
|
||||
void SyncAmsInfoDialog::on_timer(wxTimerEvent &event)
|
||||
{
|
||||
wxGetApp().reset_to_active();
|
||||
update_show_status();
|
||||
|
||||
/// show auto refill
|
||||
@@ -2419,7 +2417,6 @@ void SyncAmsInfoDialog::update_show_status()
|
||||
return;
|
||||
}
|
||||
if (!dev) return;
|
||||
dev->check_pushing();
|
||||
|
||||
// blank plate has no valid gcode file
|
||||
if (is_must_finish_slice_then_connected_printer()) { return; }
|
||||
@@ -2435,12 +2432,10 @@ void SyncAmsInfoDialog::update_show_status()
|
||||
}
|
||||
return;
|
||||
}
|
||||
agent->install_device_cert(obj_->dev_id, obj_->is_lan_mode_printer());
|
||||
|
||||
/* check cloud machine connections */
|
||||
if (!obj_->is_lan_mode_printer()) {
|
||||
if (!agent->is_server_connected()) {
|
||||
agent->refresh_connection();
|
||||
show_status(PrintDialogStatus::PrintStatusConnectingServer);
|
||||
reset_timeout();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user