mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Handle current item on playlist page
This commit is contained in:
parent
7d21617e9a
commit
7110401f61
8 changed files with 83 additions and 32 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use gtk::{glib, glib::Properties, prelude::*, subclass::prelude::*};
|
||||
use std::{
|
||||
cell::OnceCell,
|
||||
cell::{Cell, OnceCell},
|
||||
path::{Path, PathBuf},
|
||||
};
|
||||
|
||||
|
|
@ -10,6 +10,9 @@ mod imp {
|
|||
#[derive(Properties, Default)]
|
||||
#[properties(wrapper_type = super::PlaylistItem)]
|
||||
pub struct PlaylistItem {
|
||||
#[property(get, set)]
|
||||
pub is_playing: Cell<bool>,
|
||||
|
||||
#[property(get, construct_only)]
|
||||
pub is_title: OnceCell<bool>,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue