mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
Merge pull request #664 from anytypeio/feature/599
Feature/599: History
This commit is contained in:
commit
5ccfc3cf71
46 changed files with 870 additions and 159 deletions
17
electron.js
17
electron.js
|
@ -470,25 +470,19 @@ function menuInit () {
|
|||
{
|
||||
label: 'Interface', type: 'checkbox', checked: config.debugUI,
|
||||
click: () => {
|
||||
setConfig({ debugUI: !config.debugUI }, () => {
|
||||
send('toggleDebug', 'ui', config.debugUI);
|
||||
});
|
||||
setConfig({ debugUI: !config.debugUI });
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Middleware', type: 'checkbox', checked: config.debugMW,
|
||||
click: () => {
|
||||
setConfig({ debugMW: !config.debugMW }, () => {
|
||||
send('toggleDebug', 'mw', config.debugMW);
|
||||
});
|
||||
setConfig({ debugMW: !config.debugMW });
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Analytics', type: 'checkbox', checked: config.debugAN,
|
||||
click: () => {
|
||||
setConfig({ debugAN: !config.debugAN }, () => {
|
||||
send('toggleDebug', 'an', config.debugAN);
|
||||
});
|
||||
setConfig({ debugAN: !config.debugAN });
|
||||
}
|
||||
},
|
||||
]
|
||||
|
@ -499,9 +493,7 @@ function menuInit () {
|
|||
},
|
||||
{
|
||||
label: 'Dev Tools', accelerator: 'Alt+CmdOrCtrl+I',
|
||||
click: () => {
|
||||
win.webContents.openDevTools();
|
||||
}
|
||||
click: () => { win.webContents.openDevTools(); }
|
||||
}
|
||||
]
|
||||
});
|
||||
|
@ -524,6 +516,7 @@ function setChannel (channel) {
|
|||
function setConfig (obj, callBack) {
|
||||
config = Object.assign(config, obj);
|
||||
storage.set('config', config, (error) => {
|
||||
send('config', config);
|
||||
if (callBack) {
|
||||
callBack(error);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue