ENH:optimize device page lag

jira:[none]

Change-Id: I0f6f1b257922d0e25152df9d42814551fa4a89ae
(cherry picked from commit 570751668e120b92953593c38bf2469474e98d8f)
This commit is contained in:
tao wang
2025-01-05 13:25:13 +08:00
committed by Noisyfox
parent 048f91be5c
commit ac3ead14d2
6 changed files with 28 additions and 71 deletions

View File

@@ -276,8 +276,7 @@ void MonitorPanel::on_update_all(wxMouseEvent &event)
{
if (update_flag) {
update_all();
Layout();
Refresh();
//Layout();
}
}
@@ -332,7 +331,8 @@ void MonitorPanel::on_printer_clicked(wxMouseEvent &event)
void MonitorPanel::on_size(wxSizeEvent &event)
{
Layout();
Refresh();
//event.Skip();
//Refresh();
}
void MonitorPanel::update_all()
@@ -508,7 +508,7 @@ void MonitorPanel::show_status(int status)
m_upgrade_panel->update(nullptr);
#endif
Freeze();
//Freeze();
// update panels
if (m_side_tools) { m_side_tools->show_status(status); };
m_status_info_panel->show_status(status);
@@ -533,7 +533,7 @@ Freeze();
m_tabpanel->Layout();
}
Layout();
Thaw();
//Thaw();
}
std::string MonitorPanel::get_string_from_tab(PrinterTab tab)