~zanneth/hirogen

8da38e7bbc8f72e6ee4fe6113520d85290f6e804 — Charles Magahern 2 years ago 65d45b5
Disable find action when no document is open
1 files changed, 1 insertions(+), 0 deletions(-)

M src/document_window.rs
M src/document_window.rs => src/document_window.rs +1 -0
@@ 1077,6 1077,7 @@ impl DocumentWindow
            self.lookup_simple_action("paste"),
            self.lookup_simple_action("select-all"),
            self.lookup_simple_action("go-to"),
            self.lookup_simple_action("find"),
        ];
        for document_dependent_action in &document_dependent_actions {
            document_dependent_action.set_enabled(self.has_open_document());