Make migration and immediate file saving somewhat more stable, actually dispose Framework.

This commit is contained in:
Ottermandias 2022-10-20 14:25:28 +02:00
parent ccfc05f2b2
commit cb4f9f8131
3 changed files with 27 additions and 15 deletions

View file

@ -7,7 +7,6 @@ using System.Text;
using Dalamud.Game.Command;
using Dalamud.Interface.Windowing;
using Dalamud.Plugin;
using Dalamud.Utility;
using EmbedIO;
using EmbedIO.WebApi;
using ImGuiNET;
@ -291,6 +290,7 @@ public class Penumbra : IDalamudPlugin
ObjectReloader?.Dispose();
ModFileSystem?.Dispose();
CollectionManager?.Dispose();
Framework?.Dispose();
Dalamud.Commands.RemoveHandler( CommandName );