Skip to content

Commit 2ea7a35

Browse files
committed
AppMan notification improvement...
1 parent 350fd80 commit 2ea7a35

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

FlashDevelop/MainForm.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ private void InitializeConfig()
719719
Environment.SetEnvironmentVariable("PATH", oldPath + ";" + amPath, EnvironmentVariableTarget.Process);
720720
// Watch for appman update notifications
721721
this.amWatcher = new FileSystemWatcher(PathHelper.BaseDir, ".appman");
722+
this.amWatcher.Changed += new FileSystemEventHandler(this.AppManUpdate);
722723
this.amWatcher.Created += new FileSystemEventHandler(this.AppManUpdate);
723724
this.amWatcher.IncludeSubdirectories = false;
724725
this.amWatcher.EnableRaisingEvents = true;
@@ -736,8 +737,6 @@ private void AppManUpdate(Object sender, FileSystemEventArgs e)
736737
String appman = Path.Combine(PathHelper.BaseDir, ".appman");
737738
NotifyEvent ne = new NotifyEvent(EventType.AppChanges);
738739
EventManager.DispatchEvent(this, ne);
739-
Thread.Sleep(200); // Wait a bit...
740-
File.Delete(appman);
741740
}
742741
catch {} // No errors...
743742
}

0 commit comments

Comments
 (0)