Add autorestart after login
This commit is contained in:
parent
50a52ce311
commit
44521b4988
1 changed files with 2 additions and 23 deletions
25
src/main.py
25
src/main.py
|
@ -324,29 +324,8 @@ def login(page: ft.Page):
|
||||||
|
|
||||||
# Start view
|
# Start view
|
||||||
elif page.route == "/start":
|
elif page.route == "/start":
|
||||||
start_view = ft.View(
|
# start_view = ft.View(
|
||||||
route="/start",
|
restart(page)
|
||||||
controls=[
|
|
||||||
ft.Container(
|
|
||||||
content=ft.Column(
|
|
||||||
[
|
|
||||||
ft.Text(value=(_("Logged in!")), size=32, weight="bold",
|
|
||||||
text_align=ft.TextAlign.CENTER),
|
|
||||||
|
|
||||||
ft.Text(value=(_("Please restart the app to use it.")), size=16, weight="normal",
|
|
||||||
text_align=ft.TextAlign.CENTER),
|
|
||||||
],
|
|
||||||
alignment=ft.MainAxisAlignment.CENTER,
|
|
||||||
horizontal_alignment=ft.CrossAxisAlignment.CENTER,
|
|
||||||
spacing=30
|
|
||||||
),
|
|
||||||
alignment=ft.alignment.center,
|
|
||||||
expand=True,
|
|
||||||
padding=ft.padding.all(20)
|
|
||||||
)
|
|
||||||
]
|
|
||||||
)
|
|
||||||
page.views.append(start_view)
|
|
||||||
|
|
||||||
page.update()
|
page.update()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue