diff --git a/Wiki/EditorWindow.axaml.cs b/Wiki/EditorWindow.axaml.cs index 916e46e..5353f97 100644 --- a/Wiki/EditorWindow.axaml.cs +++ b/Wiki/EditorWindow.axaml.cs @@ -52,7 +52,11 @@ public partial class EditorWindow : Window { var result = await MessageBox.Show(null, "Sicher?", "Sicher?", MessageBoxButton.YesNo); if (result == MessageBoxResult.No) return; - File.Delete(filename); + try + { + File.Delete(filename); + } catch {} + MainWindow._instance.PopulateNavTree(); Close(); }