feat(Watcher): define watcher_id

This commit is contained in:
Alex
2019-05-20 11:47:45 +02:00
parent 7b11283b73
commit f2edc8f965
3 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,7 @@ namespace waybar::modules::SNI {
Tray::Tray(const std::string& id, const Bar& bar, const Json::Value& config)
: config_(config),
box_(bar.vertical ? Gtk::ORIENTATION_VERTICAL : Gtk::ORIENTATION_HORIZONTAL, 0),
watcher_(nb_hosts_),
host_(nb_hosts_, config, std::bind(&Tray::onAdd, this, std::placeholders::_1),
std::bind(&Tray::onRemove, this, std::placeholders::_1)) {
box_.set_name("tray");