Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: GitHub noreply@github.com Date: Tue, 10 Sep 2024 13:04:46 UTC Commit: 6a954b96d330e4d9f28f8ab12f07171c5f58b04a https://github.com/geany/geany/commit/6a954b96d330e4d9f28f8ab12f07171c5f58b0...
Log Message: ----------- Merge pull request #3943 from techee/extension_closing
Don't call plugin extension functions when quitting or closing all files
Modified Paths: -------------- src/pluginextension.c
Modified: src/pluginextension.c 5 lines changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -21,6 +21,7 @@ #include "pluginextension.h"
#include "editor.h" +#include "main.h"
typedef struct @@ -143,6 +144,8 @@ void plugin_extension_unregister(PluginExtension *extension) */ #define CALL_PROVIDED(f, doc, ext) \ G_STMT_START { \ + if (main_status.quitting || main_status.closing_all) \ + return FALSE; \ for (GList *node = all_extensions; node; node = node->next) \ { \ PluginExtensionEntry *entry = node->data; \ @@ -167,6 +170,8 @@ void plugin_extension_unregister(PluginExtension *extension) */ #define CALL_PERFORM(f_provided, doc, f_perform, args, defret) \ G_STMT_START { \ + if (main_status.quitting || main_status.closing_all) \ + return defret; \ for (GList *node = all_extensions; node; node = node->next) \ { \ PluginExtensionEntry *entry = node->data; \
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).