Skip to content

Commit

Permalink
Closes #292: Note about experimental PokeList patch
Browse files Browse the repository at this point in the history
  • Loading branch information
theCapypara committed Jun 21, 2021
1 parent ba0e178 commit 26bbbd0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions skytemple/module/patch/controller/main.py
Expand Up @@ -81,6 +81,18 @@ def on_btn_apply_clicked(self, *args):
self._error(_("Please save the ROM before applying the patch."))
return

if name == 'ExpandPokeList':
md = SkyTempleMessageDialog(MainAppController.window(),
Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.WARNING,
Gtk.ButtonsType.YES_NO,
_("This patch extends the Pokémon list. It iss very experimental and "
"WILL break a few things. Once applied you can not remove it again. "
"Proceed?"))
md.set_position(Gtk.WindowPosition.CENTER)
response = md.run()
md.destroy()
if response != Gtk.ResponseType.YES:
return
try:
dependencies = self._get_dependencies(name)
if len(dependencies) > 0:
Expand Down

0 comments on commit 26bbbd0

Please sign in to comment.