def is_enabled(self): """Check if command is enabled.""" return ( common.is_enabled() and not (active_thread is not None and active_thread.is_alive()) )
def is_enabled(self): """Check if command is enabled.""" view = self.window.active_view() return (common.is_enabled() and view is not None and not view.settings().get("hex_viewer_fake", False) and not (active_thread is not None and active_thread.is_alive()))
def is_enabled(self): """Check if command is enabled.""" view = self.window.active_view() return ( common.is_enabled() and view is not None and not view.settings().get("hex_viewer_fake", False) and not (active_thread is not None and active_thread.is_alive()) )
def on_pre_close(self, view): """On close.""" if common.is_enabled() and view is not None and not view.settings().get("hex_viewer_fake", False): win = view.window() panel_view = win.get_output_panel('hex_viewer_inspector') parent_win = panel_view.window() if parent_win: parent_win.run_command('hide_panel', {'cancel': True})
def on_pre_close(self, view): """On close.""" if common.is_enabled() and view is not None and not view.settings( ).get("hex_viewer_fake", False): win = view.window() panel_view = win.get_output_panel('hex_viewer_inspector') parent_win = panel_view.window() if parent_win: parent_win.run_command('hide_panel', {'cancel': True})
def is_enabled(self, **args): """Check if the command is enabled.""" view = self.window.active_view() return (view is not None and (not args.get('reload', False) or (common.is_enabled() and not view.settings().get("hex_viewer_fake", False))) and not view.settings().get("hex_viewer_fake", False) and not (active_thread is not None and active_thread.is_alive()))
def on_selection_modified(self, view): """Determine if a highlight should be triggered.""" if not common.is_enabled(view) or hh_thread.ignore_all: return now = time() if now - hh_thread.time > hh_thread.wait_time: sublime.set_timeout(hh_thread.payload, 0) else: hh_thread.modified = True hh_thread.time = now
def is_enabled(self, **args): """Check if the command is enabled.""" view = self.window.active_view() return ( view is not None and ( not args.get('reload', False) or ( common.is_enabled() and not view.settings().get("hex_viewer_fake", False) ) ) and not view.settings().get("hex_viewer_fake", False) and not(active_thread is not None and active_thread.is_alive()) )
def is_enabled(self): """Check if command is enabled.""" return bool(common.is_enabled() and len(self.window.active_view().get_regions("hex_edit")))
def is_enabled(self): """Check if command is enabled.""" return common.is_enabled()
def is_enabled(self): """Check if command is enabled.""" return bool(common.is_enabled() and common.hv_settings("inspector", False))
def is_enabled(self): """Check if the command is enabled.""" return common.is_enabled()