Browse Source

app menu debug -> reset settings

v0.25
pbca26 7 years ago
parent
commit
9fe8883afc
  1. 1
      main.js
  2. 5
      private/mainmenu.js

1
main.js

@ -279,6 +279,7 @@ function createWindow(status, hideLoadingWindow) {
mainWindow.spvFees = _spvFees;
mainWindow.startSPV = shepherd.startSPV;
mainWindow.startKMDNative = shepherd.startKMDNative;
mainWindow.resetSettings = function() { shepherd.saveLocalAppConf(__defaultAppSettings) };
mainWindow.createSeed = {
triggered: false,
firstLoginPH: null,

5
private/mainmenu.js

@ -92,8 +92,9 @@ const template = [
submenu: [
{
label: 'Reset settings',
click () {
console.log(window.require('electron').remote.getCurrentWindow().appConfig);
click (item, focusedWindow) {
console.log(focusedWindow);
focusedWindow.resetSettings();
}
},
]

Loading…
Cancel
Save