default to no position shown in play queue

This commit is contained in:
Erica Z 2024-10-20 14:26:51 +02:00
parent c6446f4352
commit 9ba12bf365
2 changed files with 3 additions and 0 deletions

View file

@ -3,6 +3,7 @@
[GtkTemplate (ui = "/eu/callcc/audrey/ui/play_queue_song.ui")] [GtkTemplate (ui = "/eu/callcc/audrey/ui/play_queue_song.ui")]
class Ui.PlayQueueSong : Gtk.ListBoxRow { class Ui.PlayQueueSong : Gtk.ListBoxRow {
public bool draggable { get; set; default = false; } public bool draggable { get; set; default = false; }
public bool show_position { get; set; default = false; }
public bool show_artist { get; set; default = false; } public bool show_artist { get; set; default = false; }
public bool show_album { get; set; default = false; } public bool show_album { get; set; default = false; }
@ -138,6 +139,7 @@ public class Ui.PlayQueue : Adw.NavigationPage {
var child = new PlayQueueSong (this.playbin); var child = new PlayQueueSong (this.playbin);
child.draggable = true; child.draggable = true;
child.show_position = false;
child.show_artist = true; child.show_artist = true;
child.show_album = true; child.show_album = true;

View file

@ -25,6 +25,7 @@ template $UiPlayQueueSong: ListBoxRow {
} }
Label { Label {
visible: bind template.show_position;
focusable: false; focusable: false;
halign: end; halign: end;
justify: right; justify: right;