def prompt_model_to_remove_device(self, need_to_confirm=True):
if need_to_confirm and not sublime.ok_cancel_dialog(STR_MODEL_REMOVE_DEVICE): return
model = self.load_this_model()
device_ids = model.get("devices") if model else None
if not device_ids or len(device_ids) == 0:
sublime.message_dialog(STR_MODEL_NO_DEVICES_TO_REMOVE)
return
(Env.For(self.window).tmp_device_ids, device_names) = self.load_devices(input_device_ids=device_ids)
self.window.show_quick_panel(device_names, self.on_remove_device_selected)
评论列表
文章目录