add ways to modify tags, and add a Fav button to client

This commit is contained in:
Mark
2023-12-30 18:12:02 +01:00
parent daad5c6aae
commit b848a0d511
8 changed files with 501 additions and 77 deletions

View File

@@ -234,7 +234,7 @@ pub fn main(
),
(
"Year".to_owned(),
crate::gui_library::FilterType::TagWithValueInt("Year".to_owned(), 1990, 2000),
crate::gui_library::FilterType::TagWithValueInt("Year=".to_owned(), 1990, 2000),
),
],
filter_presets_album: vec![
@@ -244,7 +244,7 @@ pub fn main(
),
(
"Year".to_owned(),
crate::gui_library::FilterType::TagWithValueInt("Year".to_owned(), 1990, 2000),
crate::gui_library::FilterType::TagWithValueInt("Year=".to_owned(), 1990, 2000),
),
],
filter_presets_artist: vec![
@@ -254,7 +254,7 @@ pub fn main(
),
(
"Year".to_owned(),
crate::gui_library::FilterType::TagWithValueInt("Year".to_owned(), 1990, 2000),
crate::gui_library::FilterType::TagWithValueInt("Year=".to_owned(), 1990, 2000),
),
],
#[cfg(feature = "merscfg")]
@@ -371,6 +371,18 @@ impl Gui {
| Command::RemoveSong(_)
| Command::RemoveAlbum(_)
| Command::RemoveArtist(_)
| Command::TagSongFlagSet(..)
| Command::TagSongFlagUnset(..)
| Command::TagAlbumFlagSet(..)
| Command::TagAlbumFlagUnset(..)
| Command::TagArtistFlagSet(..)
| Command::TagArtistFlagUnset(..)
| Command::TagSongPropertySet(..)
| Command::TagSongPropertyUnset(..)
| Command::TagAlbumPropertySet(..)
| Command::TagAlbumPropertyUnset(..)
| Command::TagArtistPropertySet(..)
| Command::TagArtistPropertyUnset(..)
| Command::SetSongDuration(..) => {
if let Some(s) = &*event_sender_arc.lock().unwrap() {
_ = s.send_event(GuiEvent::UpdatedLibrary);