mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
hyprland/window: use empty() for empty window name check
This commit is contained in:
parent
a3912436be
commit
17a56aa4f7
@ -92,7 +92,8 @@ void Window::onEvent(const std::string& ev) {
|
||||
if (windowName == lastView) return;
|
||||
|
||||
lastView = windowName;
|
||||
if (windowName[0] == '\0') {
|
||||
|
||||
if (windowName.empty()) {
|
||||
label_.get_style_context()->add_class("empty");
|
||||
} else {
|
||||
label_.get_style_context()->remove_class("empty");
|
||||
|
Loading…
Reference in New Issue
Block a user