From da9d00a228f89d9b1ebc14c8c4b3e6136cacc32a Mon Sep 17 00:00:00 2001 From: lainsce Date: Mon, 9 Jan 2023 14:07:53 -0300 Subject: [PATCH] a --- lib/Widgets/NavigationRail.vala | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/Widgets/NavigationRail.vala b/lib/Widgets/NavigationRail.vala index a56307c6..380f06c2 100644 --- a/lib/Widgets/NavigationRail.vala +++ b/lib/Widgets/NavigationRail.vala @@ -118,14 +118,6 @@ button.set_group ((Gtk.ToggleButton) this._buttons.nth_data (0)); } - if (button.active) { - if (((Gtk.StackPage)this._stack_pages.get_item (position)).icon_name.contains ("-symbolic")) { - ((Gtk.StackPage)this._stack_pages.get_item (position)).icon_name = ((Gtk.StackPage)this._stack_pages.get_item (position)).icon_name.replace ("-symbolic","-filled-symbolic"); - } else { - ((Gtk.StackPage)this._stack_pages.get_item (position)).icon_name = ((Gtk.StackPage)this._stack_pages.get_item (position)).icon_name + "-filled-symbolic"; - } - } - this._buttons.insert_before (button_link, button); position++; @@ -155,11 +147,8 @@ } else { ((Gtk.StackPage)this._stack_pages.get_item (position)).icon_name = ((Gtk.StackPage)this._stack_pages.get_item (position)).icon_name + "-filled-symbolic"; } - return; - } - if (!(button.active)) { + } else { ((Gtk.StackPage)this._stack_pages.get_item (position)).icon_name = ((Gtk.StackPage)this._stack_pages.get_item (position)).icon_name.replace ("-filled",""); - return; } this._stack_pages.unselect_item (position);