From ec495bd7b23f0326fa9898a1af79ac38270f91fb Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 25 Feb 2021 17:48:39 -0500 Subject: Improve frequency display (#1438) * Add frequencyDisplayMode option * Update tests * Add setting * Update frequency display styles * Improve wrapping --- ext/js/data/options-util.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'ext/js/data') diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index 1105dfed..d7f09135 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -457,7 +457,8 @@ class OptionsUtil { {async: false, update: this._updateVersion5.bind(this)}, {async: true, update: this._updateVersion6.bind(this)}, {async: false, update: this._updateVersion7.bind(this)}, - {async: true, update: this._updateVersion8.bind(this)} + {async: true, update: this._updateVersion8.bind(this)}, + {async: false, update: this._updateVersion9.bind(this)} ]; } @@ -736,4 +737,13 @@ class OptionsUtil { } return options; } + + _updateVersion9(options) { + // Version 9 changes: + // Added general.frequencyDisplayMode. + for (const profile of options.profiles) { + profile.options.general.frequencyDisplayMode = 'split-tags-grouped'; + } + return options; + } } -- cgit v1.2.3