Commit 95da470 1 parent 00d469d commit 95da470 Copy full SHA for 95da470
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ void DevicePanel::reboot() {
199
199
if (!uiState ()->engaged ()) {
200
200
if (ConfirmationDialog::confirm (" Are you sure you want to reboot?" , this )) {
201
201
// Check engaged again in case it changed while the dialog was open
202
- if (uiState ()->status == UIStatus::STATUS_DISENGAGED ) {
202
+ if (! uiState ()->engaged () ) {
203
203
Params ().putBool (" DoReboot" , true );
204
204
}
205
205
}
@@ -212,7 +212,7 @@ void DevicePanel::poweroff() {
212
212
if (!uiState ()->engaged ()) {
213
213
if (ConfirmationDialog::confirm (" Are you sure you want to power off?" , this )) {
214
214
// Check engaged again in case it changed while the dialog was open
215
- if (uiState ()->status == UIStatus::STATUS_DISENGAGED ) {
215
+ if (! uiState ()->engaged () ) {
216
216
Params ().putBool (" DoShutdown" , true );
217
217
}
218
218
}
You can’t perform that action at this time.
0 commit comments