mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-05-25 00:49:27 -04:00
Unsubscribe IStreamable events from Disposed instead of FormClosed.
This commit is contained in:
@@ -48,7 +48,7 @@ namespace LibationWinForms.BookLiberation.BaseForms
|
||||
streamable.StreamingCompleted += OnStreamingCompleted;
|
||||
streamable.StreamingCompleted += OnStreamingCompletedClose;
|
||||
|
||||
FormClosed += UnsubscribeStreamable;
|
||||
Disposed += UnsubscribeStreamable;
|
||||
}
|
||||
private void Subscribe(IProcessable processable)
|
||||
{
|
||||
@@ -81,7 +81,7 @@ namespace LibationWinForms.BookLiberation.BaseForms
|
||||
}
|
||||
private void UnsubscribeStreamable(object sender, EventArgs e)
|
||||
{
|
||||
FormClosed -= UnsubscribeStreamable;
|
||||
Disposed -= UnsubscribeStreamable;
|
||||
|
||||
Streamable.StreamingBegin -= OnStreamingBeginShow;
|
||||
Streamable.StreamingBegin -= OnStreamingBegin;
|
||||
|
||||
Reference in New Issue
Block a user