mirror of
https://github.com/zadam/trilium.git
synced 2026-05-09 00:27:15 +02:00
feat(desktop/import_preview): handle double instance
This commit is contained in:
@@ -78,6 +78,8 @@ async function main() {
|
||||
if (commandLine.includes("--new-window")) {
|
||||
windowService.createExtraWindow("");
|
||||
} else if (lastFocusedWindow) {
|
||||
handleImportArguments(commandLine, lastFocusedWindow);
|
||||
|
||||
if (lastFocusedWindow.isMinimized()) {
|
||||
lastFocusedWindow.restore();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user