Skip to content

Conversation

@Jackenmen
Copy link
Contributor

@Jackenmen Jackenmen commented Jun 7, 2023

When OPENAPS_COLOR_PREDICTION_LINES is set to true, the "Color prediction lines" checkbox in settings is incorrectly unchecked when opening Nightscout on a browser without any site data. This means that when you first change any settings, you'll override the current value of "Color prediction lines" to be false if you don't notice that the checkbox was unchecked despite the feature being enabled. This should fix that issue by using the proper setting value from settings.extendedSettings rather than only checking the value in browser storage.

There's actually one other problem that I noticed which I'm not sure what the best way to fix it is - "Reset, and use defaults" does not reset the plugin-specific settings. This happens because nothing in that link's on-click function touches extendedSettings (settings.eachSetting() only lists direct attributes of settings and settings.thresholds).

@sulkaharo
Copy link
Member

LGTM

@sulkaharo sulkaharo merged commit 6354494 into nightscout:dev Jun 10, 2023
@Jackenmen Jackenmen deleted the patch-2 branch June 10, 2023 08:09
@tiparraco tiparraco mentioned this pull request Jun 15, 2023
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

Successfully merging this pull request may close these issues.

2 participants