fixed issue where when requesting playlist deletion mode, the trash button was hidden

This commit is contained in:
liyaowhen
2024-07-29 13:17:30 -07:00
parent b84c1a5844
commit 77ad4a8101
3 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
namespace Song {
public class PlaylistButton : Gtk.Box {
private Settings settings = new Settings ("com.liyaowhen.Song");
public PlaylistObject playlist;
private Gtk.Button remove_button;
@@ -14,7 +13,6 @@ namespace Song {
construct {
orientation = Gtk.Orientation.HORIZONTAL;
add_css_class("toolbar");
remove_button = new Gtk.Button.from_icon_name("app-remove-symbolic");
@@ -34,6 +32,7 @@ namespace Song {
main_button.hexpand = true;
append(main_button);
append(remove_button_revealer);
main_button.can_shrink = true;
hexpand = true;
+1
View File
@@ -19,6 +19,7 @@ namespace Song {
var toolbar_view = new Adw.ToolbarView();
var scroll_box = new Gtk.ScrolledWindow();
scroll_box.hscrollbar_policy = Gtk.PolicyType.NEVER;
side_bar_content = new SideBarContent ();
side_bar_content.set_vexpand (true);
side_bar_content.set_hexpand (true);