Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preferences API Docs - Misleading Example App Logic #3

Open
AlbinoGeek opened this issue Jan 30, 2021 · 0 comments
Open

Preferences API Docs - Misleading Example App Logic #3

AlbinoGeek opened this issue Jan 30, 2021 · 0 comments

Comments

@AlbinoGeek
Copy link

AlbinoGeek commented Jan 30, 2021

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.

@andydotxyz andydotxyz transferred this issue from fyne-io/developer.fyne.io Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant