mirror of
https://github.com/heyman/heynote.git
synced 2025-08-17 18:11:12 +02:00
Check all open buffer files for changes when window gets focus
The reason we do this is because fs.watch() is unreliable in some case. #build
This commit is contained in:
@@ -316,7 +316,7 @@ function registerAlwaysOnTop() {
|
||||
|
||||
app.whenReady().then(createWindow).then(async () => {
|
||||
initFileLibrary(win).then(() => {
|
||||
setupFileLibraryEventHandlers(win)
|
||||
setupFileLibraryEventHandlers()
|
||||
})
|
||||
initializeAutoUpdate(win)
|
||||
registerGlobalHotkey()
|
||||
@@ -375,8 +375,8 @@ async function initFileLibrary(win) {
|
||||
}
|
||||
|
||||
try {
|
||||
fileLibrary = new FileLibrary(libraryPath)
|
||||
fileLibrary.setupWatcher(win)
|
||||
fileLibrary = new FileLibrary(libraryPath, win)
|
||||
fileLibrary.setupWatcher()
|
||||
} catch (error) {
|
||||
initErrors.push(`Error: ${error.message}`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user