diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-12-02 12:55:12 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-12-02 12:55:12 +0100 |
commit | 956065bc2fe4e2c36217050f27fa95fb305da848 (patch) | |
tree | 56ae865034a500dfe175ce552ed6c84a566b3303 | |
parent | 957018a5dd64c9006d40fc7fc6cb8e4ae1387d43 (diff) |
fix: fix queue position persistence
-rw-r--r-- | src/frontend/tubo/events.cljs | 2 | ||||
-rw-r--r-- | src/frontend/tubo/main_player/events.cljs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/tubo/events.cljs b/src/frontend/tubo/events.cljs index 8f08164..f0edf47 100644 --- a/src/frontend/tubo/events.cljs +++ b/src/frontend/tubo/events.cljs @@ -36,7 +36,7 @@ :queue (if-nil (:queue store) []) :service-id (if-nil (:service-id store) 0) :player/loop (if-nil (:player/loop store) :playlist) - :queue/position (if-nil (:palyer/position store) 0) + :queue/position (if-nil (:queue/position store) 0) :player/volume (if-nil (:player/volume store) 100) :bg-player/show (:bg-player/show store) :bookmarks (if-nil (:bookmarks store) diff --git a/src/frontend/tubo/main_player/events.cljs b/src/frontend/tubo/main_player/events.cljs index da9676e..8c3c693 100644 --- a/src/frontend/tubo/main_player/events.cljs +++ b/src/frontend/tubo/main_player/events.cljs @@ -41,7 +41,7 @@ :main-player/toggle-layout (fn [db [_ layout]] (assoc-in db - [:queue (:queue-pos db) layout] + [:queue (:queue/position db) layout] (not (get-in db [:queue (:queue/position db) layout]))))) (rf/reg-event-fx |