From 781357fbcbc7f255f85ad21b60c88228f1cdafed Mon Sep 17 00:00:00 2001 From: lainsce Date: Mon, 2 Sep 2024 14:34:12 -0300 Subject: [PATCH] Remove unnecessary signal handling on back_button --- lib/Widgets/BottomSheet.vala | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/Widgets/BottomSheet.vala b/lib/Widgets/BottomSheet.vala index 827f52d..bc5e52a 100644 --- a/lib/Widgets/BottomSheet.vala +++ b/lib/Widgets/BottomSheet.vala @@ -245,13 +245,6 @@ public class He.BottomSheet : Gtk.Widget { back_button.set_visible (false); back_button.valign = Gtk.Align.START; back_button.halign = Gtk.Align.START; - back_button.clicked.connect (() => { - var selected_page = sheet_stack.pages.get_selection (); - sheet_stack.pages.select_item (int.max (((int) selected_page.get_nth (0) - 1), 0), true); - }); - if (sheet_stack.pages.is_selected (0)) { - back_button.set_visible (false); - } var title_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0); title_box.append (back_button);