SpotifyWeb.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:SpotifyWeb 作者: DevInsideYou 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号