def plugin_loaded():
window.set_status_bar_message("")
window.subscribe(sublime.active_window().active_view())
open_settings_window_if_credentials_are_not_set()
def run_main_loop():
Spotify(
side_effect = window.set_status_bar_message
).run_main_loop(settings_manager)
'''
When sublime starts up and the plugin is enabled,
the server should start on a different thread,
so that sublime doesn't hang until the circuit breaker kicks in
'''
sublime.set_timeout_async(run_main_loop, 5000)
评论列表
文章目录