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