Add system notifications for track changes
- Add notify-rust dependency for desktop notifications - Create notification.rs commands module with show_track_notification and show_notification - Register notification commands in lib.rs - Wire up notifications in frontend for all playback scenarios: - Search results playback - Album track playback - Playlist track playback - Queue navigation and auto-advance
This commit is contained in:
1 parent
ddbedf6ab0
commit
ef8feebc45
5 files changed
+101
No files matched your search
@@ -124,6 +124,9 @@ pub fn run() {
|
||||
commands::get_favorites,
|
||||
commands::add_favorite,
|
||||
commands::remove_favorite,
|
||||
// Notification commands
|
||||
commands::show_track_notification,
|
||||
commands::show_notification,
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
|
||||
Reference in new issue
Block a user