File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments