From 868b7fb10c912ea3b7200d1ffa1f287dce335f23 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 9 May 2026 19:58:44 +0300 Subject: Fix shuffle hotkey reshuffle behavior (q1) --- web/js/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'web/js/app.js') diff --git a/web/js/app.js b/web/js/app.js index cfa43f1..9ecd854 100644 --- a/web/js/app.js +++ b/web/js/app.js @@ -20,7 +20,7 @@ import { isImageMode as playerIsImageMode, } from './player.js'; import { initSearch, parseQuery, showSearchHelp } from './search.js'; -import { initShuffle, toggle as toggleShuffle, isOn as isShuffle } from './shuffle.js'; +import { initShuffle, enable as enableShuffle, isOn as isShuffle, revision as shuffleRevision } from './shuffle.js'; import { initThemes } from './themes.js'; import { initNotes } from './notes.js'; import { initAdmin } from './admin.js'; @@ -168,6 +168,7 @@ async function initApp() { initSets({ onLoadMedia: loadMedia }); initMediaGrid({ isShuffle, + shuffleRevision, onSetCleared: updateSetRowsUI, openNotesForSelected, openTagsForElement, @@ -266,7 +267,7 @@ function keyboardHandlers() { closeAllModals(); }, shuffle: () => { - toggleShuffle(); + enableShuffle(); loadMedia(); }, share: () => shareSelected(), -- cgit v1.2.3