"do everything" button have been renamed to "install mod", removed the 3 steps button.

Fixed issue with "do everything" button not stopping when encountering an error
This commit is contained in:
raphael60650 2021-11-20 18:28:22 +01:00
parent 95f9e4b823
commit 6304a88d95

View file

@ -190,13 +190,12 @@ class Gui:
def nothread_use_path():
try:
game_path = entry_game_path.get()
if not os.path.exists(game_path):
messagebox.showerror(self.translate("Error"), self.translate("This file does not exist."))
return
if not os.path.exists(game_path): raise InvalidGamePath
self.game.set_path(game_path)
self.progress(show=True, indeter=True, statut=self.translate("Extracting the game..."))
self.game.extract()
except RomAlreadyPatched:
messagebox.showerror(self.translate("Error"), self.translate("This game is already modded"))
raise RomAlreadyPatched
@ -320,7 +319,7 @@ class Gui:
:param enable: are the button enabled ?
"""
button = [
self.button_do_everything
self.button_do_everything,
]
for widget in button:
if enable: