From 9f6f29b370cfec4125be9f9e0c8c12b611487166 Mon Sep 17 00:00:00 2001 From: James Liggett Date: Sat, 26 Apr 2008 01:12:59 -0700 Subject: [PATCH] Make sure that the Git menu is sensitive when the plugin is loaded after a project is opened. If the user loads the plugin after the project is loaded, the Git menu would be insensitive, even with a project open. Make sure to verify that there is no project open before de-sensitizing the menu. --- plugins/git/plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/git/plugin.c b/plugins/git/plugin.c index 77592dd6..7f75b607 100644 --- a/plugins/git/plugin.c +++ b/plugins/git/plugin.c @@ -213,7 +213,8 @@ git_activate_plugin (AnjutaPlugin *plugin) "ActionGroupGit", "ActionMenuGit"); - gtk_action_set_sensitive (git_menu_action, FALSE); + if (!git_plugin->project_root_directory) + gtk_action_set_sensitive (git_menu_action, FALSE); return TRUE; } -- 2.11.4.GIT