chore: remove redundant else statement
parent
5e44cb6ba2
commit
5a380da3bb
|
@ -107,17 +107,15 @@ auto Group::update() -> void {
|
||||||
Gtk::Box& Group::getBox() { return is_drawer ? (is_first_widget ? box : revealer_box) : box; }
|
Gtk::Box& Group::getBox() { return is_drawer ? (is_first_widget ? box : revealer_box) : box; }
|
||||||
|
|
||||||
void Group::addWidget(Gtk::Widget& widget) {
|
void Group::addWidget(Gtk::Widget& widget) {
|
||||||
if (is_drawer) {
|
|
||||||
getBox().pack_start(widget, false, false);
|
getBox().pack_start(widget, false, false);
|
||||||
|
|
||||||
|
if (is_drawer) {
|
||||||
if (is_first_widget) {
|
if (is_first_widget) {
|
||||||
// Necessary because of GTK's hitbox detection
|
// Necessary because of GTK's hitbox detection
|
||||||
addHoverHandlerTo(widget);
|
addHoverHandlerTo(widget);
|
||||||
} else {
|
} else {
|
||||||
widget.get_style_context()->add_class(add_class_to_drawer_children);
|
widget.get_style_context()->add_class(add_class_to_drawer_children);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
getBox().pack_start(widget, false, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
is_first_widget = false;
|
is_first_widget = false;
|
||||||
|
|
Loading…
Reference in New Issue