mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 22:52:30 +02:00
refactor(tray): cleanup and fixes
This commit is contained in:
@ -4,8 +4,8 @@
|
||||
#include <thread>
|
||||
#include "util/json.hpp"
|
||||
#include "IModule.hpp"
|
||||
#include "modules/sni/snw.hpp"
|
||||
#include "modules/sni/snh.hpp"
|
||||
#include "modules/sni/watcher.hpp"
|
||||
#include "modules/sni/host.hpp"
|
||||
|
||||
namespace waybar::modules::SNI {
|
||||
|
||||
@ -15,6 +15,9 @@ class Tray : public IModule {
|
||||
auto update() -> void;
|
||||
operator Gtk::Widget &();
|
||||
private:
|
||||
void onAdd(std::unique_ptr<Item>& item);
|
||||
void onRemove(std::unique_ptr<Item>& item);
|
||||
|
||||
std::thread thread_;
|
||||
const Json::Value& config_;
|
||||
Gtk::Box box_;
|
||||
|
Reference in New Issue
Block a user