Skip to content

bug: The page.window.icon setting does not take effect in Flet version 0.84.0 #6382

@Dodotry

Description

@Dodotry

Duplicate Check

Describe the bug

The page.window.icon setting does not take effect in Flet version 0.84.0, even though the assets/icon.ico file exists and is confirmed to be in the correct format.

Code sample

Code
[Paste your code here]

import flet as ft

def main(page: ft.Page):
    page.title = "Test Icon"

    icon_file = r"assets/icon.ico"

    page.window.icon = icon_file

    page.add(ft.Text("Show Icon"))

    page.update()

if __name__ == "__main__":
    ft.run(main)

To reproduce

The page.window.icon setting does not take effect in Flet version 0.84.0, even though the assets/icon.ico file exists and is confirmed to be in the correct format.

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Image

Operating System

Windows

Operating system details

Windows11

Flet version

flet 0.84.0

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions