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