mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
"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:
parent
95f9e4b823
commit
6304a88d95
1 changed files with 3 additions and 4 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue