|
|
|
@ -196,7 +196,7 @@ void DevicePanel::updateCalibDescription() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DevicePanel::reboot() { |
|
|
|
|
if (uiState()->status == UIStatus::STATUS_DISENGAGED) { |
|
|
|
|
if (!uiState()->engaged()) { |
|
|
|
|
if (ConfirmationDialog::confirm("Are you sure you want to reboot?", this)) { |
|
|
|
|
// Check engaged again in case it changed while the dialog was open
|
|
|
|
|
if (uiState()->status == UIStatus::STATUS_DISENGAGED) { |
|
|
|
@ -209,7 +209,7 @@ void DevicePanel::reboot() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DevicePanel::poweroff() { |
|
|
|
|
if (uiState()->status == UIStatus::STATUS_DISENGAGED) { |
|
|
|
|
if (!uiState()->engaged()) { |
|
|
|
|
if (ConfirmationDialog::confirm("Are you sure you want to power off?", this)) { |
|
|
|
|
// Check engaged again in case it changed while the dialog was open
|
|
|
|
|
if (uiState()->status == UIStatus::STATUS_DISENGAGED) { |
|
|
|
|