Commit ef6b90e
committed
fix: make saved data track if the value has been changed
`opted_in` and `showExtensionInfo`, instead of storing a boolean value,
now store an object consisting of a `value` and `changed` keys. `value`
indicates which value the user wants for the given option, and `changed`
indicates whether the value has been changed from its default value.
Adding the `changed` key allows for users to have their options kept the
same if the default value is changed.
Signed-off-by: Lucas Sta Maria <[email protected]>1 parent 07580a8 commit ef6b90e
2 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
227 | 234 | | |
228 | | - | |
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
0 commit comments