diff --git a/Control/Windows/ConfigWindow.xaml.cs b/Control/Windows/ConfigWindow.xaml.cs index 6d334d9..78d90a0 100644 --- a/Control/Windows/ConfigWindow.xaml.cs +++ b/Control/Windows/ConfigWindow.xaml.cs @@ -95,6 +95,7 @@ namespace GeekDesk.Control.Windows { if (e.Key == Key.Escape) { + this.DataContext = null; this.Close(); } } diff --git a/Control/Windows/ToDoInfoWindow.xaml.cs b/Control/Windows/ToDoInfoWindow.xaml.cs index 4327f74..cd95121 100644 --- a/Control/Windows/ToDoInfoWindow.xaml.cs +++ b/Control/Windows/ToDoInfoWindow.xaml.cs @@ -247,6 +247,7 @@ namespace GeekDesk.Control.Windows { if (e.Key == Key.Escape) { + this.DataContext = null; this.Close(); } } diff --git a/Control/Windows/ToDoWindow.xaml.cs b/Control/Windows/ToDoWindow.xaml.cs index 0618adf..a374cf0 100644 --- a/Control/Windows/ToDoWindow.xaml.cs +++ b/Control/Windows/ToDoWindow.xaml.cs @@ -102,6 +102,7 @@ namespace GeekDesk.Control.Windows { if (e.Key == Key.Escape) { + this.DataContext = null; this.Close(); } } diff --git a/Control/Windows/UpdateWindow.xaml.cs b/Control/Windows/UpdateWindow.xaml.cs index 6b1be10..1aa8ff0 100644 --- a/Control/Windows/UpdateWindow.xaml.cs +++ b/Control/Windows/UpdateWindow.xaml.cs @@ -111,6 +111,7 @@ namespace GeekDesk.Control.Windows { if (e.Key == Key.Escape) { + this.DataContext = null; this.Close(); } }