mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 23:56:05 +02:00
Fixed UpdateRebuildFileWatches removing watched directories
This commit is contained in:
parent
18f7a5bd09
commit
61b38b06c5
2 changed files with 17 additions and 1 deletions
|
@ -987,7 +987,11 @@ namespace IDE.Compiler
|
|||
{
|
||||
if (!curWatches.Contains(kv.key))
|
||||
{
|
||||
gApp.mFileWatcher.RemoveWatch(kv.key, kv.value);
|
||||
var watchFile = scope String(kv.key);
|
||||
if ((watchFile.EndsWith(Path.DirectorySeparatorChar)) || (watchFile.EndsWith(Path.AltDirectorySeparatorChar)))
|
||||
watchFile.Append("*");
|
||||
gApp.mFileWatcher.RemoveWatch(watchFile, kv.value);
|
||||
//Debug.Assert(!gApp.mFileWatcher.HasDependentObject(kv.value));
|
||||
oldKeys.Add(kv.key);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue