Skip to content

Commit

Permalink
Remove unnecessary signal handling on back_button
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Sep 2, 2024
1 parent ee89073 commit 781357f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/Widgets/BottomSheet.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 781357f

Please sign in to comment.