fix(plugin): flush DeferredSaveFrames in Dispose before service teardown
This commit is contained in:
1 parent
93329087a9
commit
e5bf375b42
1 file changed
+8
@@ -536,6 +536,14 @@ public sealed class Plugin : IDalamudPlugin
|
|||||||
Framework.Update -= FrameworkUpdate;
|
Framework.Update -= FrameworkUpdate;
|
||||||
GameFunctions.GameFunctions.SetChatInteractable(true);
|
GameFunctions.GameFunctions.SetChatInteractable(true);
|
||||||
|
|
||||||
|
// FrameworkUpdate would have fired the pending save in N frames,
|
||||||
|
// but we just unsubscribed it. -1 is the idle sentinel.
|
||||||
|
if (DeferredSaveFrames >= 0)
|
||||||
|
{
|
||||||
|
SaveConfig();
|
||||||
|
DeferredSaveFrames = -1;
|
||||||
|
}
|
||||||
|
|
||||||
HonorificService?.Dispose();
|
HonorificService?.Dispose();
|
||||||
|
|
||||||
WindowSystem?.RemoveAllWindows();
|
WindowSystem?.RemoveAllWindows();
|
||||||
|
|||||||
Reference in new issue
Block a user