Handle closing of ContextWindow correct
This commit is contained in:
1 parent
2281ec80ae
commit
4cd1114def
1 file changed
+3
-3
@@ -1,5 +1,5 @@
|
||||
using Elwig.Helpers;
|
||||
using System.ComponentModel;
|
||||
using System;
|
||||
using System.Windows;
|
||||
|
||||
namespace Elwig.Windows {
|
||||
@@ -11,9 +11,9 @@ namespace Elwig.Windows {
|
||||
Context = new();
|
||||
}
|
||||
|
||||
protected override void OnClosing(CancelEventArgs evt) {
|
||||
protected override void OnClosed(EventArgs evt) {
|
||||
base.OnClosed(evt);
|
||||
Context.Dispose();
|
||||
base.OnClosing(evt);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user