flet
flet copied to clipboard
"page.window.visible = True" doesn't work in Linux
Duplicate Check
- [X] I have searched the opened issues and there are no duplicates
Describe the bug
When I use page.window.visible = False the page is hidden, but after using page.window.visible = True it doesn't reappear, although the code still runs normally. Not even using page.window.maximized, the page won't be visible anyway. In Windows it works well, but i have tried in Ubuntu, Fedora and Mint, and it never works. There are no error messages
Code sample
Logs
from time import sleep
import flet as ft
def main(page: ft.Page):
page.add(ft.Text("Hello!"))
sleep(3)
page.window.visible = True
page.update()
ft.app(target=main, view=ft.AppView.FLET_APP_HIDDEN)
To reproduce
When running any code with page.window.visible = True the window won't appear, but there's no any error message
Expected behavior
No response
Screenshots / Videos
Screenshots / Video demonstration
[Upload media here]
Operating System
Linux
Operating system details
Linux Mint 21
Flet version
0.23.2
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response