Handle closing of ContextWindow correct
This commit is contained in:
@ -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