From 72d974cf476aa10f8889c3f39d11797c6094137f Mon Sep 17 00:00:00 2001 From: Ant Purchase Date: Wed, 27 Mar 2019 13:50:37 +0000 Subject: [PATCH] Savefile watcher now reacts to file overwrites Should fix issue #28. --- LarkatorGUI/MainWindow.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/LarkatorGUI/MainWindow.xaml.cs b/LarkatorGUI/MainWindow.xaml.cs index 6f433d4..4bb0689 100644 --- a/LarkatorGUI/MainWindow.xaml.cs +++ b/LarkatorGUI/MainWindow.xaml.cs @@ -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;