Simplified the privacy_item hiding/showing logic

This commit is contained in:
Erik Reider
2023-10-28 18:30:50 +02:00
parent 86491e1512
commit 46e36c0e68
3 changed files with 29 additions and 20 deletions

View File

@@ -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] {