def on_done(self, index):
"""
callback for menu items, gets called with *index of selected items
"""
if index == -1:
return None
elif index == 0:
self.window.show_input_panel("Set remote IP",
self.settings.get("remote_ip", "192.168.0.1"),
self.set_ip,
None,
None)
elif index == 1:
REMOTE.adb_reconnect_async()
self.window.run_command("remote_actions")
elif index == 2:
variables = self.window.active_view().extract_variables()
if "folder" in variables:
REMOTE.push_to_box(variables["folder"])
elif index == 3:
plugin_path = os.path.join(sublime.packages_path(), "KodiDevKit")
REMOTE.get_log(self.open_file, plugin_path)
elif index == 4:
plugin_path = os.path.join(sublime.packages_path(), "KodiDevKit")
REMOTE.get_screenshot(self.open_file, plugin_path)
elif index == 5:
REMOTE.clear_cache()
elif index == 6:
REMOTE.reboot()
评论列表
文章目录