mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
added an error if the select rom does not exists
This commit is contained in:
parent
98d8947c55
commit
7ac3eb8958
1 changed files with 6 additions and 1 deletions
|
@ -190,7 +190,12 @@ class Gui:
|
||||||
def nothread_use_path():
|
def nothread_use_path():
|
||||||
self.frame_action.grid_forget()
|
self.frame_action.grid_forget()
|
||||||
try:
|
try:
|
||||||
self.game.set_path(entry_game_path.get())
|
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
|
||||||
|
|
||||||
|
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()
|
||||||
self.frame_action.grid(row=3, column=1, sticky="NEWS")
|
self.frame_action.grid(row=3, column=1, sticky="NEWS")
|
||||||
|
|
Loading…
Reference in a new issue