MCPcopy
hub / github.com/jisaacks/GitGutter / is_enabled

Method is_enabled

modules/commands.py:248–250  ·  view source on GitHub ↗

Enable command if mdpopups is available.

(self)

Source from the content-addressed store, hash-verified

246 ACTION = 'show_diff_popup'
247
248 def is_enabled(self):
249 """Enable command if mdpopups is available."""
250 return self.is_visible() and GitGutterBaseCommand.is_enabled(self)
251
252 def is_visible(self):
253 """Show command in main menu only if mdpopups is available."""

Callers

nothing calls this directly

Calls 2

is_visibleMethod · 0.95
is_enabledMethod · 0.45

Tested by

no test coverage detected