From 56b6b823a03aa1994f070864c1793bdb0e93282f Mon Sep 17 00:00:00 2001 From: eidheim Date: Sun, 15 Nov 2015 13:44:54 +0100 Subject: [PATCH] Added deactivate/activate to Go to Usage menu item. --- src/window.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window.cc b/src/window.cc index 5e847b5..b157296 100644 --- a/src/window.cc +++ b/src/window.cc @@ -637,6 +637,7 @@ void Window::activate_menu_items(bool activate) { menu->actions["source_indentation_auto_indent_buffer"]->set_enabled(activate ? static_cast(notebook.get_current_view()->auto_indent) : false); menu->actions["source_find_documentation"]->set_enabled(activate ? static_cast(notebook.get_current_view()->get_token_data) : false); menu->actions["source_goto_declaration"]->set_enabled(activate ? static_cast(notebook.get_current_view()->get_declaration_location) : false); + menu->actions["source_goto_usage"]->set_enabled(activate ? static_cast(notebook.get_current_view()->get_usages) : false); menu->actions["source_goto_method"]->set_enabled(activate ? static_cast(notebook.get_current_view()->goto_method) : false); menu->actions["source_rename"]->set_enabled(activate ? static_cast(notebook.get_current_view()->rename_similar_tokens) : false); menu->actions["source_goto_next_diagnostic"]->set_enabled(activate ? static_cast(notebook.get_current_view()->goto_next_diagnostic) : false);