mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
f043a820f3
commit
28b71bab58
@ -66,7 +66,7 @@ gnc_plugin_manager_get (void)
|
|||||||
{
|
{
|
||||||
singleton = g_object_new (GNC_TYPE_PLUGIN_MANAGER,
|
singleton = g_object_new (GNC_TYPE_PLUGIN_MANAGER,
|
||||||
NULL);
|
NULL);
|
||||||
gnc_hook_add_dangler (HOOK_UI_SHUTDOWN,
|
gnc_hook_add_dangler (HOOK_SHUTDOWN,
|
||||||
gnc_plugin_manager_shutdown, NULL);
|
gnc_plugin_manager_shutdown, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user