def on_done(self, index):
if index == -1:
return None
media_path = os.path.join(INFOS.addon.theme_path, self.themes[index])
utils.texturepacker(media_path=media_path,
settings=sublime.load_settings(SETTINGS_FILE),
xbt_filename=self.themes[index] + ".xbt")
if sublime.ok_cancel_dialog("Theme file created!\nDo you want to show it with a file browser?"):
webbrowser.open(media_path)
评论列表
文章目录