refactoring

This commit is contained in:
zadam
2021-04-17 20:52:46 +02:00
parent 42510fda5c
commit 1fdf889ccf
11 changed files with 213 additions and 90 deletions

View File

@@ -3,6 +3,7 @@
const optionService = require('../../services/options');
const log = require('../../services/log');
const attributes = require('../../services/attributes');
const searchService = require('../../services/search/services/search');
// options allowed to be updated directly in options dialog
const ALLOWED_OPTIONS = new Set([
@@ -91,8 +92,7 @@ function update(name, value) {
}
function getUserThemes() {
const notes = attributes.getNotesWithLabel('appTheme');
const notes = searchService.findNotes("#appTheme");
const ret = [];
for (const note of notes) {