void Settings_WorkingDirChanged(string oldDir, string newDir)
{
try
{
if (Directory.Exists(newDir))
{
watcher.Path = newDir;
watcher.EnableRaisingEvents = true;
}
else
{
watcher.EnableRaisingEvents = false;
}
nextUpdate = Math.Min(nextUpdate, Environment.TickCount + UPDATE_DELAY);
}
catch { }
}