Compile language files; Enhance translation functions
This commit is contained in:
parent
580d57f7b0
commit
06db2121c8
4 changed files with 49 additions and 13 deletions
|
@ -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()
|
Loading…
Add table
Add a link
Reference in a new issue