1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

CU-hq6bg7: Select type in object

This commit is contained in:
Andrew Simachev 2021-05-18 13:31:33 +03:00
parent c652a72d13
commit d2cfb4d37a
12 changed files with 204 additions and 82 deletions

View file

@ -126,65 +126,30 @@ function initTray () {
tray = new Tray (trayIcon());
tray.setToolTip('Anytype');
tray.setContextMenu(Menu.buildFromTemplate([
{
label: 'Open Anytype',
click: () => { win.show(); }
},
{ label: 'Open Anytype', click: () => { win.show(); } },
{ type: 'separator' },
{
label: 'Settings',
click: () => {
win.show();
send('popup', 'settings');
}
},
{
label: 'Check for updates',
click: () => {
win.show();
checkUpdate(false);
}
},
{ label: 'Settings', click: () => { win.show(); send('popup', 'settings'); } },
{ label: 'Check for updates', click: () => { win.show(); checkUpdate(false); } },
{ type: 'separator' },
{
label: 'Import',
click: () => {
win.show();
send('popup', 'settings', { data: { page: 'importIndex' } });
}
},
{
label: 'Export',
click: () => {
win.show();
send('popup', 'settings', { data: { page: 'exportMarkdown' } });
}
},
{ label: 'Import', click: () => { win.show(); send('popup', 'settings', { data: { page: 'importIndex' } }); } },
{ label: 'Export', click: () => { win.show(); send('popup', 'settings', { data: { page: 'exportMarkdown' } }); } },
{ type: 'separator' },
{
label: 'New object',
click: () => {
win.show();
send('command', 'create');
}
},
{
label: 'Search object',
click: () => {
win.show();
send('popup', 'search', { preventResize: true });
}
},
{ label: 'New object', click: () => { win.show(); send('command', 'create'); } },
{ label: 'Search object', click: () => { win.show(); send('popup', 'search', { preventResize: true }); } },
{ type: 'separator' },
{
label: 'Object diagnostics',
click: () => {
win.show();
send('debugSync');
}
},
{ label: 'Object diagnostics', click: () => { win.show(); send('debugSync'); } },
{ type: 'separator' },
{
{
label: 'Quit',
click: () => {
if (win) {
@ -456,6 +421,10 @@ function menuInit () {
label: 'Export',
click: () => { send('popup', 'settings', { data: { page: 'exportMarkdown' } }); }
},
{
label: 'Save as file',
click: () => { send('command', 'save'); }
},
{
label: 'Object diagnostics',
click: () => { send('debugSync'); }