diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-09 19:58:44 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-09 19:58:44 +0300 |
| commit | 868b7fb10c912ea3b7200d1ffa1f287dce335f23 (patch) | |
| tree | a524d91e484bf4c814a269815594b3ebae66bed4 /web/js/app.js | |
| parent | 8c32cd117abe79f4ee6cff3a950ffc35c95faeff (diff) | |
Fix shuffle hotkey reshuffle behavior (q1)
Diffstat (limited to 'web/js/app.js')
| -rw-r--r-- | web/js/app.js | 5 |
1 files changed, 3 insertions, 2 deletions
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(), |
