Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that status is updated upon notification #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/cmstapp/code/control_box/controlbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,7 @@ void ControlBox::dbsPropertyChanged(QString prop, QDBusVariant dbvalue)
notifyclient->setBody(tr("Power has been restored to all previously powered network devices.") );
}
this->sendNotifications();
updateDisplayWidgets();
} // if contains offlinemode

// state property
Expand All @@ -1141,12 +1142,14 @@ void ControlBox::dbsPropertyChanged(QString prop, QDBusVariant dbvalue)
notifyclient->setBody(tr("The system is online.") );
notifyclient->setIcon(iconman->getIconName("state_online") );
this->sendNotifications();
updateDisplayWidgets();
} // if
} // if
else {
notifyclient->setBody(tr("The system is offline.") );
notifyclient->setIcon(iconman->getIconName("state_not_ready") );
this->sendNotifications();
updateDisplayWidgets();
} // else

// execute external program if specified
Expand Down