From b0bd9458e30aed6b60d7dd1ec06af1334b859ec8 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Wed, 1 Nov 2017 10:34:38 -0400 Subject: [PATCH] Makes ControlPanel.Dispose call Cleanup in main .cs file --- TGControlPanel/ControlPanel.Designer.cs | 2 +- TGControlPanel/ControlPanel.cs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/TGControlPanel/ControlPanel.Designer.cs b/TGControlPanel/ControlPanel.Designer.cs index 1dea637fbe..198c3edfba 100644 --- a/TGControlPanel/ControlPanel.Designer.cs +++ b/TGControlPanel/ControlPanel.Designer.cs @@ -15,7 +15,7 @@ { if (disposing && (components != null)) { - Interface.Dispose(); + Cleanup(); components.Dispose(); } base.Dispose(disposing); diff --git a/TGControlPanel/ControlPanel.cs b/TGControlPanel/ControlPanel.cs index 4e37861ab7..a1393c30ca 100644 --- a/TGControlPanel/ControlPanel.cs +++ b/TGControlPanel/ControlPanel.cs @@ -36,6 +36,14 @@ namespace TGControlPanel LoadChatPage(); InitStaticPage(); } + + /// + /// Called from + /// + void Cleanup() + { + Interface.Dispose(); + } private void Main_Resize(object sender, EventArgs e) {