This commit is contained in:
Erica Z 2024-11-10 17:21:04 +01:00
parent 274751a6e0
commit 1d9318eb92

View file

@ -128,9 +128,10 @@ mod imp {
if new_position > self.window().duration() { if new_position > self.window().duration() {
// just seek to the next track // just seek to the next track
self.on_skip_forward_clicked(); self.on_skip_forward_clicked();
} } else {
self.window().seek(new_position); self.window().seek(new_position);
} }
}
#[template_callback] #[template_callback]
fn on_play_pause_clicked(&self, _button: &gtk::Button) { fn on_play_pause_clicked(&self, _button: &gtk::Button) {