mirror of
https://github.com/FAUSheppy/homelab_gamevault
synced 2025-12-06 06:51:36 +01:00
add: error message in case of connection problem
This commit is contained in:
@@ -11,6 +11,8 @@ import imagetools
|
||||
import webbrowser
|
||||
import statekeeper
|
||||
import infowidget
|
||||
import requests
|
||||
import tkinter
|
||||
|
||||
customtkinter.set_appearance_mode("dark")
|
||||
customtkinter.set_default_color_theme("blue")
|
||||
@@ -387,5 +389,9 @@ if __name__ == "__main__":
|
||||
app.update()
|
||||
|
||||
# fill and run app #
|
||||
load_main() # TODO add button to reopen config # TODO add button to purge cache/purge cache window # TODO show game size on remote
|
||||
try:
|
||||
load_main() # TODO add button to reopen config # TODO add button to purge cache/purge cache window # TODO show game size on remote
|
||||
except requests.exceptions.ConnectionError as e:
|
||||
app.withdraw()
|
||||
tkinter.messagebox.showerror("There was a connection problem", str(e))
|
||||
app.mainloop()
|
||||
|
||||
Reference in New Issue
Block a user