font sizes were not created for new documents - fix plus migration for existing ones

This commit is contained in:
azivner
2019-01-22 20:34:45 +01:00
parent 52b1e58b26
commit 0ff250fe15
3 changed files with 16 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ const build = require('./build');
const packageJson = require('../../package');
const {TRILIUM_DATA_DIR} = require('./data_dir');
const APP_DB_VERSION = 123;
const APP_DB_VERSION = 124;
const SYNC_VERSION = 4;
module.exports = {

View File

@@ -49,6 +49,10 @@ async function initNotSyncedOptions(initialized, startNotePath = 'root', syncSer
await optionService.createOption('syncServerTimeout', 5000, false);
await optionService.createOption('syncProxy', syncProxy, false);
await optionService.createOption('mainFontSize', '100', false);
await optionService.createOption('treeFontSize', '100', false);
await optionService.createOption('detailFontSize', '110', false);
await optionService.createOption('initialized', initialized ? 'true' : 'false', false);
}