release(v1.6.8): fix(ui) prevent Extract/Create flash on refresh; remember last folder

This commit is contained in:
Ryan
2025-10-25 20:33:01 -04:00
committed by GitHub
parent a400163dfb
commit 9c53c37f38
3 changed files with 19 additions and 4 deletions

View File

@@ -105,12 +105,14 @@ export function initializeApp() {
const saved = parseInt(localStorage.getItem('rowHeight') || '48', 10);
document.documentElement.style.setProperty('--file-row-height', saved + 'px');
window.currentFolder = "root";
//window.currentFolder = "root";
const last = localStorage.getItem('lastOpenedFolder');
window.currentFolder = last ? last : "root";
const stored = localStorage.getItem('showFoldersInList');
window.showFoldersInList = stored === null ? true : stored === 'true';
loadAdminConfigFunc();
initTagSearch();
loadFileList(window.currentFolder);
//loadFileList(window.currentFolder);
const fileListArea = document.getElementById('fileListContainer');
const uploadArea = document.getElementById('uploadDropArea');