fix: dispose model before updating

This commit is contained in:
Anna 2021-01-30 20:50:56 -05:00
parent d7d6c53c75
commit 07a20adcd0
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ namespace NoSoliciting {
}
if (ImGui.Button("Update model")) {
this.Plugin.MlFilter?.Dispose();
this.Plugin.MlFilter = null;
this.Plugin.InitialiseMachineLearning();
}