WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Preferences API Docs - Misleading Example App Logic #3

@AlbinoGeek

Description

@AlbinoGeek

Due to the code shown below, the example does not behave as a user might expect.

    go func() {
        time.Sleep(timeout)
        a.Quit()
    }()

https://developer.fyne.io/tutorial/preferences-api


Effectively, it doesn't matter what you choose in the Select, the program will always close after 10 seconds on first run.

Perhaps, this should be a more visual demonstration, such as choosing a colour and showing the chosen colour on re-launch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions