We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 are not read at program startup. Was working just fine in 2.2.1
Run the example program, set some preferences keys/vals. Then restart the program and try to read the keys set before : you get nothing!
package main import ( "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/container" "fyne.io/fyne/v2/widget" ) func main() { a := app.NewWithID("com.example.app") w := a.NewWindow("Test") key := widget.NewEntry() val := widget.NewEntry() w.SetContent(container.NewVBox(key, val, container.NewGridWithColumns(2, widget.NewButton("Set", func() { a.Preferences().SetString(key.Text, val.Text) }), widget.NewButton("Get", func() { val.SetText(a.Preferences().String(key.Text)) }), ))) w.ShowAndRun() }
The text was updated successfully, but these errors were encountered:
Somehow this code got commented out?
0222f62
Add a test to make sure it doesn't happen again. Fixes fyne-io#3125
db463a5
Add a test to make sure it doesn't happen again. Fixes #3125
Resolved ready for a speedy v2.2.3
v2.2.3
Sorry, something went wrong.
No branches or pull requests
Describe the bug:
Preferences are not read at program startup. Was working just fine in 2.2.1
To Reproduce:
Run the example program, set some preferences keys/vals. Then restart the program and try to read the keys set before : you get nothing!
Example code:
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: