You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
I have tested setting and removing values on Windows and Linux. I am able to set and write values to the preferences file but RemoveValue does not work. I'm using Fyne v2.2.3.
I can confirm on Linux that the code below creates a preferences file (~/.config/fyne/com.vitalitysouth.test/preferences.json) and that file contains the contents: {"num":42}
Even if I comment out or remove the Set() line, RemoveValue still will not remove the value from the preferences.json file.
I noticed that if I make a Set() call after the RemoveValue() call, then the RemoveValue() call will take effect. So, as a workaround, the following code allows RemoveValue() to work.
Checklist
Describe the bug
I have tested setting and removing values on Windows and Linux. I am able to set and write values to the preferences file but RemoveValue does not work. I'm using Fyne v2.2.3.
I can confirm on Linux that the code below creates a preferences file (~/.config/fyne/com.vitalitysouth.test/preferences.json) and that file contains the contents:
{"num":42}
Even if I comment out or remove the Set() line, RemoveValue still will not remove the value from the preferences.json file.
Relevant go.mod:
How to reproduce
Screenshots
No response
Example code
Fyne version
2.2.3
Go compiler version
1.19
Operating system
Linux
Operating system version
WSL Ubuntu 20.04
Additional Information
No response
The text was updated successfully, but these errors were encountered: