Do not crash when a monitor is removed

This commit is contained in:
Jef Steelant
2022-11-09 09:34:19 +01:00
parent 8be5bab8ad
commit 8f4f67f69f
6 changed files with 62 additions and 16 deletions

View File

@ -7,10 +7,11 @@
namespace waybar::modules::hyprland {
class Language : public waybar::AButton {
class Language : public waybar::AButton,
public EventHandler {
public:
Language(const std::string&, const waybar::Bar&, const Json::Value&);
~Language() = default;
~Language();
auto update() -> void;