From 8decd923fffdb2151d261ab22987827001b032c2 Mon Sep 17 00:00:00 2001 From: liufei Date: Sun, 9 Jan 2022 17:44:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E7=AA=97=E5=8F=A3=E6=97=B6?= =?UTF-8?q?=20=20=E5=B0=86=E6=95=B0=E6=8D=AE=E8=AE=BE=E7=BD=AE=E4=B8=BAnul?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Control/Windows/ConfigWindow.xaml.cs | 1 + Control/Windows/ToDoInfoWindow.xaml.cs | 1 + Control/Windows/ToDoWindow.xaml.cs | 1 + Control/Windows/UpdateWindow.xaml.cs | 1 + 4 files changed, 4 insertions(+) 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(); } }