Skip to content

Commit

Permalink
Savefile watcher now reacts to file overwrites
Browse files Browse the repository at this point in the history
Should fix issue #28.
  • Loading branch information
coldino committed Mar 27, 2019
1 parent 5ecd46b commit 72d974c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions LarkatorGUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ private void SetupFileWatcher()
if (fileWatcher != null) fileWatcher.EnableRaisingEvents = false;
fileWatcher = new FileSystemWatcher(Path.GetDirectoryName(Properties.Settings.Default.SaveFile));
fileWatcher.Renamed += FileWatcher_Changed;
fileWatcher.Changed += FileWatcher_Changed;
fileWatcher.EnableRaisingEvents = true;
reloadTimer.Interval = TimeSpan.FromMilliseconds(Properties.Settings.Default.ConvertDelay);
reloadTimer.Tick += ReloadTimer_Tick;
Expand Down

0 comments on commit 72d974c

Please sign in to comment.