This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-22 08:18:38 -04:00
1 parent 302ffc8b7e
commit d7d935275a
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -1175,6 +1175,7 @@
const lastSlash = filePath.lastIndexOf('/'); const lastSlash = filePath.lastIndexOf('/');
const dir = lastSlash > 0 ? filePath.substring(0, lastSlash + 1) : '/'; const dir = lastSlash > 0 ? filePath.substring(0, lastSlash + 1) : '/';
invalidateTreeCache(dir);
if (selectedFile) { if (selectedFile) {
if (selectedFile === filePath || currentPath.startsWith(dir)) { if (selectedFile === filePath || currentPath.startsWith(dir)) {
@@ -1183,7 +1184,7 @@
} }
} else { } else {
if (currentPath.startsWith(dir) || dir.startsWith(currentPath)) { if (currentPath.startsWith(dir) || dir.startsWith(currentPath)) {
await loadDir(currentPath, { preserveTree: true }); await refreshBrowser();
} }
} }
}); });
@@ -35,6 +35,7 @@
user as _user, user as _user,
showControls, showControls,
showSettings, showSettings,
showFileNavDir,
selectedTerminalId, selectedTerminalId,
TTSWorker, TTSWorker,
temporaryChatEnabled temporaryChatEnabled
@@ -946,6 +947,7 @@
fileItem.size = uploadedFile.size ?? file.size; fileItem.size = uploadedFile.size ?? file.size;
fileItem.file = uploadedFile; fileItem.file = uploadedFile;
files = files; files = files;
showFileNavDir.set(uploadedFile.path);
} else { } else {
fileItem.status = 'error'; fileItem.status = 'error';
fileItem.error = $i18n.t('Failed to upload file.'); fileItem.error = $i18n.t('Failed to upload file.');