1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Desktop: Add log statement to try to fix issue #3536

This commit is contained in:
Laurent Cozic 2020-09-07 23:55:37 +01:00
parent a424e3c899
commit 67d4123608

View File

@ -141,6 +141,7 @@ class ExternalEditWatcher {
// Hack to support external watcher on some linux applications (gedit, gvim, etc)
// taken from https://github.com/paulmillr/chokidar/issues/591
this.watcher_.on('raw', async (event, path, { watchedPath }) => {
/* was_debug */ this.logger().info(`ExternalEditWatcher: Raw event: ${event}: ${watchedPath}`);
if (event === 'rename') {
this.watcher_.unwatch(watchedPath);
this.watcher_.add(watchedPath);