mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH: disable buttons when no printer selected
Change-Id: I238f2861d41a06d661d04cf205ccdb7b4bbe113a
This commit is contained in:
@@ -2619,8 +2619,9 @@ void StatusPanel::show_status(int status)
|
||||
last_status = status;
|
||||
|
||||
if (((status & (int) MonitorStatus::MONITOR_DISCONNECTED) != 0)
|
||||
|| ((status & (int) MonitorStatus::MONITOR_DISCONNECTED_SERVER) != 0)
|
||||
|| ((status & (int)MonitorStatus::MONITOR_CONNECTING) != 0)
|
||||
|| ((status & (int) MonitorStatus::MONITOR_DISCONNECTED_SERVER) != 0)
|
||||
|| ((status & (int)MonitorStatus::MONITOR_CONNECTING) != 0)
|
||||
|| ((status & (int)MonitorStatus::MONITOR_NO_PRINTER) != 0)
|
||||
) {
|
||||
m_text_tasklist_caption->SetForegroundColour(DISCONNECT_TEXT_COL);
|
||||
show_printing_status(false, false);
|
||||
|
||||
Reference in New Issue
Block a user