feat: implemented loop support in pwsp-gui

This commit is contained in:
2026-01-02 03:18:51 +03:00
parent 2a13c25230
commit 531a49dbdf
4 changed files with 32 additions and 1 deletions
+7
View File
@@ -125,6 +125,13 @@ impl SoundpadGui {
daemon_config.save_to_file().ok();
}
}
pub fn toggle_loop(&mut self) {
make_request_sync(Request::set_loop(
&(!self.audio_player_state.looped).to_string(),
))
.ok();
}
}
pub async fn run() -> Result<(), Box<dyn Error>> {