1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-13 22:12:50 +02:00

Electron: Fixes #805: Fixed app freezing when opening note in external editor and then creating new note

This commit is contained in:
Laurent Cozic
2018-09-24 07:10:00 +01:00
parent 14cff96713
commit 953cc327c6

View File

@@ -166,8 +166,10 @@ class Application extends BaseApplication {
case 'NOTE_FILE_WATCHER_CLEAR':
newState = Object.assign({}, state);
newState.watchedNoteFiles = [];
if (state.watchedNoteFiles.length) {
newState = Object.assign({}, state);
newState.watchedNoteFiles = [];
}
break;
}