Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: GitHub noreply@github.com Date: Tue, 10 Sep 2024 14:05:39 UTC Commit: eea0a25d5de5914f6dfef99776c7a73e29dc6b5f https://github.com/geany/geany/commit/eea0a25d5de5914f6dfef99776c7a73e29dc6b...
Log Message: ----------- Merge pull request #3945 from techee/extension_opening
Don't call plugin extension functions when opening session files
Modified Paths: -------------- src/pluginextension.c
Modified: src/pluginextension.c 6 lines changed, 4 insertions(+), 2 deletions(-) =================================================================== @@ -144,7 +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) \ + if (main_status.quitting || main_status.closing_all || \ + main_status.opening_session_files) \ return FALSE; \ for (GList *node = all_extensions; node; node = node->next) \ { \ @@ -170,7 +171,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) \ + if (main_status.quitting || main_status.closing_all || \ + main_status.opening_session_files) \ return defret; \ for (GList *node = all_extensions; node; node = node->next) \ { \
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).