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

@ -29,7 +29,6 @@ class PrivacyItem : public Gtk::Revealer {
enum util::PipewireBackend::PrivacyNodeType privacy_type;
std::mutex mutex_;
sigc::connection signal_conn;
bool init = false;
bool in_use = false;
@ -41,6 +40,9 @@ class PrivacyItem : public Gtk::Revealer {
Gtk::Box box_;
Gtk::Image icon_;
void on_child_revealed_changed();
void on_map_changed();
};
} // namespace waybar::modules::privacy