diff --git a/KeyManager/App.xaml b/KeyManager/App.xaml index 77ffcbd..6313908 100644 --- a/KeyManager/App.xaml +++ b/KeyManager/App.xaml @@ -3,7 +3,9 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Leosac.KeyManager" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" - StartupUri="pack://application:,,,/WpfApp;component/MainWindow.xaml" Startup="Application_Startup"> + StartupUri="pack://application:,,,/WpfApp;component/MainWindow.xaml" + Startup="Application_Startup" + Exit="Application_Exit"> diff --git a/KeyManager/App.xaml.cs b/KeyManager/App.xaml.cs index abdbee6..c510247 100644 --- a/KeyManager/App.xaml.cs +++ b/KeyManager/App.xaml.cs @@ -44,5 +44,10 @@ private void Application_Startup(object sender, StartupEventArgs e) LangHelper.ChangeLanguage(settings.Language); } } + + private void Application_Exit(object sender, ExitEventArgs e) + { + Clipboard.Clear(); + } } }