fix(config): proper config debug
This commit is contained in:
parent
b4373c3a8d
commit
5679340038
@ -1,5 +1,6 @@
|
|||||||
const { app } = require('electron')
|
const { app } = require('electron')
|
||||||
const os = require('os')
|
const os = require('os')
|
||||||
|
const _ = require('lodash')
|
||||||
|
|
||||||
let config = {
|
let config = {
|
||||||
indexer: true,
|
indexer: true,
|
||||||
@ -24,6 +25,7 @@ let config = {
|
|||||||
trayOnClose: false,
|
trayOnClose: false,
|
||||||
trayOnMinimize: true,
|
trayOnMinimize: true,
|
||||||
startMinimized: false,
|
startMinimized: false,
|
||||||
|
darkMode: false,
|
||||||
|
|
||||||
sitemapMaxSize: 25000,
|
sitemapMaxSize: 25000,
|
||||||
|
|
||||||
@ -93,8 +95,10 @@ const configProxy = new Proxy(config, {
|
|||||||
target['p2pReplicationServer'] = true
|
target['p2pReplicationServer'] = true
|
||||||
if(prop == 'p2pReplicationServer' && !value)
|
if(prop == 'p2pReplicationServer' && !value)
|
||||||
target['p2pReplication'] = false
|
target['p2pReplication'] = false
|
||||||
|
|
||||||
|
|
||||||
|
if (!_.isEqual(target[prop],value)) {
|
||||||
|
logT('config', prop, '=', value)
|
||||||
|
}
|
||||||
target[prop] = value
|
target[prop] = value
|
||||||
|
|
||||||
if(!fs.existsSync(configPath))
|
if(!fs.existsSync(configPath))
|
||||||
|
Loading…
Reference in New Issue
Block a user