Skip to content

Commit

Permalink
Don't warn when used outside navigation view
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Mar 2, 2024
1 parent 2d92c89 commit 476bde9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Widgets/BackButton.vala
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ public class Granite.BackButton : Gtk.Button {
var navigation_view = (Adw.NavigationView) get_ancestor (typeof (Adw.NavigationView));

if (navigation_view == null) {
warning ("Granite.BackButton used outside of Adw.NavigationView");
return;
}

var navigation_page = (Adw.NavigationPage) get_ancestor (typeof (Adw.NavigationPage));

if (navigation_view == null) {
warning ("Granite.BackButton used outside of Adw.NavigationPage");
return;
}

Expand Down

0 comments on commit 476bde9

Please sign in to comment.