def plugin_loaded(): """ Load up uniocode table, initialize settings and match object, and start event loop. Restart event loop if already loaded. """ global HIGH_VISIBILITY global bh_thread init_bh_match() ure.set_cache_directory(join(sublime.packages_path(), "User"), "bh") global HIGH_VISIBILITY if sublime.load_settings("bh_core.sublime-settings").get('high_visibility_enabled_by_default', False): HIGH_VISIBILITY = True if bh_thread is not None: bh_thread.kill() bh_thread = BhThread() bh_thread.start()
def plugin_loaded(): """ Load up uniocode table, initialize settings and match object, and start event loop. Restart event loop if already loaded. """ global HIGH_VISIBILITY global bh_thread init_bh_match() ure.set_cache_directory(join(sublime.packages_path(), "User"), "bh") global HIGH_VISIBILITY if sublime.load_settings("bh_core.sublime-settings").get( 'high_visibility_enabled_by_default', False): HIGH_VISIBILITY = True if bh_thread is not None: bh_thread.kill() bh_thread = BhThread() bh_thread.start()
def plugin_loaded(): """ Load up uniocode table, initialize settings and match object, and start event loop. Restart event loop if already loaded. """ BhEventMgr.load() init_bh_match() ure.set_cache_directory(join(sublime.packages_path(), "User"), "bh") global HIGH_VISIBILITY if sublime.load_settings("bh_core.sublime-settings").get('high_visibility_enabled_by_default', False): HIGH_VISIBILITY = True if 'running_bh_loop' not in globals(): global running_bh_loop running_bh_loop = True thread.start_new_thread(bh_loop, ()) debug("Starting Thread") else: debug("Restarting Thread") BhThreadMgr.restart = True
def plugin_loaded(): """ Load up uniocode table, initialize settings and match object, and start event loop. Restart event loop if already loaded. """ BhEventMgr.load() init_bh_match() ure.set_cache_directory(join(sublime.packages_path(), "User"), "bh") global HIGH_VISIBILITY if sublime.load_settings("bh_core.sublime-settings").get( 'high_visibility_enabled_by_default', False): HIGH_VISIBILITY = True if 'running_bh_loop' not in globals(): global running_bh_loop running_bh_loop = True thread.start_new_thread(bh_loop, ()) debug("Starting Thread") else: debug("Restarting Thread") BhThreadMgr.restart = True