Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jan 9, 2023
1 parent 4f177de commit da9d00a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/Widgets/NavigationRail.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit da9d00a

Please sign in to comment.