Approach to dry pattern - separate remove/add css-classes logic to methods

This commit is contained in:
dimti
2025-10-10 11:57:44 +03:00
parent 2e6bf549a0
commit a36a5e89a9
2 changed files with 16 additions and 9 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ class Language : public waybar::ALabel, public EventHandler {
std::string short_description;
};
auto getLayout(const std::string&) -> Layout;
auto removeXkbLayoutCssClass() -> void;
auto addXkbLayoutCssClass() -> void;
static auto getLayout(const std::string&) -> Layout;
std::mutex mutex_;
const Bar& bar_;