Make file opening work properly

This commit is contained in:
Skyler Lehmkuhl
2025-01-17 21:27:15 -05:00
parent 6e4f3d670f
commit f642fa8e4d
4 changed files with 12 additions and 10 deletions
+3 -1
View File
@@ -6705,7 +6705,9 @@ function outliner(object = undefined) {
async function startup() {
await loadConfig();
createNewFileDialog(_newFile, _open, config);
showNewFileDialog(config);
if (!window.openedFiles) {
showNewFileDialog(config);
}
}
startup();
+2
View File
@@ -145,12 +145,14 @@ function createNewFileDialog(newFileCallback, openFileCallback, config) {
}
function showNewFileDialog(config) {
if (!overlay) return;
overlay.style.display = 'block';
newFileDialog.style.display = 'block';
displayFiles(config.recentFiles); // Reload the recent files
}
function closeDialog() {
if (!overlay) return;
overlay.style.display = 'none';
newFileDialog.style.display = 'none';
}