fix: taskbar not applying empty class on empty

master
zspher 2024-06-06 03:23:47 +08:00
parent 7163752aa0
commit 1b1442e3ba
No known key found for this signature in database
GPG Key ID: 58A2293163A15B00
1 changed files with 1 additions and 1 deletions

View File

@ -894,7 +894,7 @@ void Taskbar::move_button(Gtk::Button &bt, int pos) { box_.reorder_child(bt, pos
void Taskbar::remove_button(Gtk::Button &bt) {
box_.remove(bt);
if (tasks_.empty()) {
if (box_.get_children().empty()) {
box_.get_style_context()->add_class("empty");
}
}