修复:移除 startWatching 中残留的 isModifiedExternally 引用(运行时 ReferenceError)

This commit is contained in:
thzxx
2026-05-18 13:12:59 +08:00
parent b613384030
commit ffb925c690
-1
View File
@@ -70,7 +70,6 @@ function startWatching(filePath) {
try {
fileWatcher = fs.watch(filePath, (eventType) => {
if (eventType === 'change' && mainWindow && !mainWindow.isDestroyed()) {
isModifiedExternally = true;
mainWindow.webContents.send('file:externallyModified', filePath);
}
});