ENH: disable buttons when no printer selected

Change-Id: I238f2861d41a06d661d04cf205ccdb7b4bbe113a
This commit is contained in:
Stone Li authored and Lane.Wei committed 2022-12-15 04:33:48 -05:00
1 parent 4385fc9d94
commit 06459ac808
1 file changed
+3 -2
+3 -2
View File
@@ -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);