modules: systemd_failed_units: Enforce visibility of event box on every update
Instead if guarding visibility in if condition, enforce visibility regardless of the state of the current update. Signed-off-by: Steffen Kothe <steffen.kothe@skothe.net>
This commit is contained in:
@ -109,9 +109,8 @@ auto SystemdFailedUnits::update() -> void {
|
|||||||
event_box_.set_visible(false);
|
event_box_.set_visible(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!event_box_.get_visible()) {
|
|
||||||
event_box_.set_visible(true);
|
event_box_.set_visible(true);
|
||||||
}
|
|
||||||
|
|
||||||
// Set state class.
|
// Set state class.
|
||||||
if (!last_status.empty() && label_.get_style_context()->has_class(last_status)) {
|
if (!last_status.empty() && label_.get_style_context()->has_class(last_status)) {
|
||||||
|
Reference in New Issue
Block a user