Make file opening work properly
This commit is contained in:
+3
-1
@@ -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();
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user