mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-17 00:12:53 +02:00
Simplified the privacy_item hiding/showing logic
This commit is contained in:
@@ -125,6 +125,8 @@ auto Privacy::update() -> void {
|
||||
if (is_visible) {
|
||||
event_box_.set_visible(true);
|
||||
} else {
|
||||
// Hides the widget when all of the privacy_item revealers animations
|
||||
// have finished animating
|
||||
visibility_conn = Glib::signal_timeout().connect(
|
||||
sigc::track_obj(
|
||||
[this] {
|
||||
|
Reference in New Issue
Block a user