mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
FIX: fix display error in UpgradePanel
set to default value when monitor status is DISCONNECTED or NO_PRINTER Change-Id: I48b9f44e9744794cfaaed32c316b7f3866cf76fd Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
93b26be024
commit
0a1f3df697
1 changed files with 6 additions and 0 deletions
|
@ -518,6 +518,9 @@ void MonitorPanel::show_status(int status)
|
|||
m_connection_info->Show();
|
||||
m_connection_info->SetBackgroundColor(wxColour(255, 111, 0));
|
||||
m_connection_info->SetBorderColor(wxColour(255, 111, 0));
|
||||
#if !BBL_RELEASE_TO_PUBLIC
|
||||
m_upgrade_panel->update(nullptr);
|
||||
#endif
|
||||
} else if ((status & (int) MonitorStatus::MONITOR_NORMAL) != 0) {
|
||||
m_connection_info->Hide();
|
||||
} else if ((status & (int) MonitorStatus::MONITOR_CONNECTING) != 0) {
|
||||
|
@ -535,6 +538,9 @@ void MonitorPanel::show_status(int status)
|
|||
m_status_info_panel->show_status(status);
|
||||
m_tabpanel->Refresh();
|
||||
m_tabpanel->Layout();
|
||||
#if !BBL_RELEASE_TO_PUBLIC
|
||||
m_upgrade_panel->update(nullptr);
|
||||
#endif
|
||||
} else if (((status & (int)MonitorStatus::MONITOR_NORMAL) != 0)
|
||||
|| ((status & (int)MonitorStatus::MONITOR_DISCONNECTED) != 0)
|
||||
|| ((status & (int) MonitorStatus::MONITOR_DISCONNECTED_SERVER) != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue