Handle current item on playlist page

This commit is contained in:
Elias Projahn 2023-10-26 11:48:42 +02:00
parent 7d21617e9a
commit 7110401f61
8 changed files with 83 additions and 32 deletions

View file

@ -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>,