add tray icons
This commit is contained in:
@@ -26,8 +26,7 @@ App::App() {
|
||||
continue;
|
||||
}
|
||||
|
||||
auto bar = new Bar(monitor->gobj(), this->hyprlandService, hyprlandMonitor->id);
|
||||
this->hyprlandService.printMonitor(*hyprlandMonitor); // Debugging output
|
||||
auto bar = new Bar(monitor->gobj(), this->hyprlandService, this->trayService, hyprlandMonitor->id);
|
||||
|
||||
bar->set_application(app);
|
||||
bar->show();
|
||||
@@ -41,6 +40,8 @@ App::App() {
|
||||
delete bar;
|
||||
}
|
||||
bars.clear();
|
||||
|
||||
this->trayService.stop();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -49,6 +50,7 @@ void App::setupServices() {
|
||||
this->hyprlandService, &HyprlandService::on_hyprland_event));
|
||||
|
||||
this->hyprlandService.start();
|
||||
this->trayService.start();
|
||||
}
|
||||
|
||||
int App::run() {
|
||||
|
||||
Reference in New Issue
Block a user