Problem/Motivation
There is a need to store and retrieve some styles settings separately from other properties.
Data model changes
Persistent variable styleswitcher_styles will hold only the following properties of styles:
namelabelpath
Other styles settings will be stored separately in styleswitcher_styles_settings variable:
weightstatusis_default
API changes
2 functions styleswitcher_styles_properties() and styleswitcher_styles_settings() have been added to get styles settings and properties from corresponding vars or to retrieve their default values in case vars are not set.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | styleswitcher-separate_styles_settings-2536482-1.patch | 9.69 KB | pingwin4eg |
Comments
Comment #1
pingwin4egApplies after #2536298-1: All-purpose function to return a styles list and #2536300-1: Move sorting styles to the output.
Comment #2
pingwin4egComment #4
pingwin4eg