1
0
Fork 0
forked from Fuji/Fuji

Compile language files; Enhance translation functions

This commit is contained in:
Maarceeli 2025-03-10 16:58:15 +01:00
parent 580d57f7b0
commit 06db2121c8
4 changed files with 49 additions and 13 deletions

View file

@ -61,6 +61,9 @@ def setlanguage(lang):
config.write(file)
def restart(page: ft.Page):
python = sys.executable
subprocess.Popen([python] + sys.argv)
page.window.destroy()
try:
python = sys.executable
subprocess.Popen([python] + sys.argv)
page.window.destroy()
except FileNotFoundError:
exit()