Change the shutdown hook for the plugin manager

When quitting with multiple windows, as the first window closes the
plugin manager is shutdown and so the plugins for subsequent windows
can not remove the preference callbacks that were setup so move the
manager shutdown hook to HOOK_SHUTDOWN as opposed to HOOK_UI_SHUTDOWN.
This commit is contained in:
Robert Fewell 2019-07-28 12:03:00 +01:00
parent f043a820f3
commit 28b71bab58

View File

@ -66,7 +66,7 @@ gnc_plugin_manager_get (void)
{
singleton = g_object_new (GNC_TYPE_PLUGIN_MANAGER,
NULL);
gnc_hook_add_dangler (HOOK_UI_SHUTDOWN,
gnc_hook_add_dangler (HOOK_SHUTDOWN,
gnc_plugin_manager_shutdown, NULL);
}