1 - Saved Variables
What steps will reproduce the problem?
1. Open Interface Options to FarmHud
2. Uncheck any of the 3 support checkboxes then reload the UI
What is the expected output? What do you see instead?
Checkbox states to be saved between sessions (as there is a saved variable for them)
What version of the product are you using?
v1.1.0
Please provide any additional information below.
Seems to be the if statements on 259 to 269.
if not FarmHudDB.show_gathermate then FarmHudDB.show_gathermate = true end
appears to see the value is false (unchecked) and then assigns it a value of true (checked).
What should be happening is to check for a nil value instead (otherwise why even save the state in the database).
changing them to
if FarmHudDB.show_gathermate == nil then FarmHudDB.show_gathermate = true end
seems to fix it and actually store the check state between sessions.
| User | When | Change |
|---|---|---|
| Amemir | Aug 28, 2011 at 09:55 UTC | Create |
Facts
- Reported
- Aug 28, 2011
- Status
- New - Issue has not had initial review yet.
- Type
- Defect - A shortcoming, fault, or imperfection
- Priority
- Medium - Normal priority.
- Votes
- 0