don't restore non-file empty windows

This commit is contained in:
Martin Aeschlimann 2019-04-24 17:42:44 +02:00
parent 6af961b7e5
commit dbcefa1d91

View file

@ -948,7 +948,7 @@ export class WindowsManager implements IWindowsMainService {
if (pathToOpen && pathToOpen.folderUri) {
windowsToOpen.push(pathToOpen);
}
} else if (restoreWindows !== 'folders' && openedWindow.backupPath) { // Windows that were Empty
} else if (restoreWindows !== 'folders' && openedWindow.backupPath && !openedWindow.remoteAuthority) { // Local windows that were empty. Empty windows with backups will always be restored in open()
windowsToOpen.push({ backupPath: openedWindow.backupPath, remoteAuthority: openedWindow.remoteAuthority });
}
}