From 5a380da3bb5adcd9dd3a3e1d073f830b0c9df722 Mon Sep 17 00:00:00 2001 From: Brenno Lemos Date: Sat, 14 Oct 2023 18:39:42 -0300 Subject: [PATCH] chore: remove redundant else statement --- src/group.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/group.cpp b/src/group.cpp index 11e28d85..3eceacc1 100644 --- a/src/group.cpp +++ b/src/group.cpp @@ -107,17 +107,15 @@ auto Group::update() -> void { Gtk::Box& Group::getBox() { return is_drawer ? (is_first_widget ? box : revealer_box) : box; } 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) { // Necessary because of GTK's hitbox detection addHoverHandlerTo(widget); } else { widget.get_style_context()->add_class(add_class_to_drawer_children); } - } else { - getBox().pack_start(widget, false, false); } is_first_widget = false;