-
Notifications
You must be signed in to change notification settings - Fork 608
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the bug
When trying to implement a button to minimize the window programmatically, it works for the first time only, bringing back the window up from the task bar and trying to minimize it again using the button does not work.
Code sample
Code
import flet as ft
def main(page: ft.Page):
def minimize():
page.window.minimized = True
page.add(
ft.Button(
content="Minimize",
on_click=minimize,
),
)
ft.run(main)To reproduce
- Run the sample code.
- Click the custom "Minimize" button (Window should minimize as expected).
- Bring back up the window by clicking it on the task bar.
- Click the custom "Minimize" button again (No longer has effect).
Expected behavior
No response
Screenshots / Videos
Captures
Operating System
Linux
Operating system details
Manjaro Linux x86_64
Flet version
0.70.0.dev5463
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]Additional details
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working