1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Soft fail on watchers

This commit is contained in:
Brian Fiete 2022-01-19 18:03:28 -05:00
parent 7c6bdeffbe
commit 11b43b0d1c

View file

@ -114,7 +114,7 @@ namespace IDE
configFile.mFilePath = new String(path);
configFile.mConfigDir = new String();
Path.GetDirectoryPath(configFile.mFilePath, configFile.mConfigDir);
Path.GetDirectoryPath(configFile.mFilePath, configFile.mConfigDir).IgnoreError();
for (let projName in data.Enumerate("Registry"))
{
@ -191,7 +191,7 @@ namespace IDE
watcher.OnDeleted.Add(new (fileName) => LibsChanged());
watcher.OnRenamed.Add(new (newName, oldName) => LibsChanged());
watcher.OnError.Add(new () => LibsChanged());
watcher.StartRaisingEvents();
watcher.StartRaisingEvents().IgnoreError();
mWatchers.Add(watcher);
#endif
}