small improvements

This commit is contained in:
zjeffer
2023-07-16 14:47:14 +02:00
parent 2bfc0e1da6
commit 2721e19ee6
2 changed files with 17 additions and 19 deletions

View File

@ -11,7 +11,7 @@ namespace waybar::modules::hyprland {
class Workspace {
public:
Workspace(const Json::Value& value);
Workspace(const Json::Value& workspace_data);
std::string& select_icon(std::map<std::string, std::string>& icons_map);
Gtk::Button& button() { return button_; };
@ -42,7 +42,7 @@ class Workspace {
class Workspaces : public AModule, public EventHandler {
public:
Workspaces(const std::string&, const waybar::Bar&, const Json::Value&);
virtual ~Workspaces();
~Workspaces() override;
void update() override;
void init();