cutting 160 dead/duplicated lines and one unused dependency
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
//! Types shared across thread and crate boundaries.
|
||||
//!
|
||||
//! `AudioCommand`/`AudioEvent` cross the audio-thread channel; `AppEvent`
|
||||
//! crosses between the TUI, MPRIS, and niri IPC layers. They live here —
|
||||
//! deliberately dependency-free — so `riptune-mpris`, `riptune-niri`, and the
|
||||
//! `riptune` binary all share one definition instead of each inventing their
|
||||
//! own (which is exactly the bug that broke the build previously: two
|
||||
//! different `AudioCommand` types that looked identical but weren't).
|
||||
//! `AudioCommand`/`AudioEvent` cross the audio-thread channel. They live here
|
||||
//! — deliberately dependency-free — so `riptune-mpris` and the `riptune`
|
||||
//! binary share one definition instead of each inventing their own (which is
|
||||
//! exactly the bug that broke the build previously: two different
|
||||
//! `AudioCommand` types that looked identical but weren't).
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
@@ -47,14 +46,3 @@ pub struct ThemeColors {
|
||||
#[serde(default)]
|
||||
pub selection_bg: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum AppEvent {
|
||||
/// User favorited/unfavorited a track (mirrors Subsonic star/unstar + can be
|
||||
/// triggered from a niri keybind, MPRIS client, or the TUI itself).
|
||||
ToggleFavorite { track_id: String },
|
||||
/// Fired by the niri IPC listener when the focused workspace changes.
|
||||
WorkspaceChanged { name: Option<String> },
|
||||
NextTrack,
|
||||
PreviousTrack,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user