fix(config): proper config debug

This commit is contained in:
Alexey Kasyanchuk 2023-06-01 01:34:50 +03:00
parent b4373c3a8d
commit 5679340038

View File

@ -1,5 +1,6 @@
const { app } = require('electron')
const os = require('os')
const _ = require('lodash')
let config = {
indexer: true,
@ -24,6 +25,7 @@ let config = {
trayOnClose: false,
trayOnMinimize: true,
startMinimized: false,
darkMode: false,
sitemapMaxSize: 25000,
@ -94,7 +96,9 @@ const configProxy = new Proxy(config, {
if(prop == 'p2pReplicationServer' && !value)
target['p2pReplication'] = false
if (!_.isEqual(target[prop],value)) {
logT('config', prop, '=', value)
}
target[prop] = value
if(!fs.existsSync(configPath))