ing
This commit is contained in:
parent
6845e1653e
commit
4bfb51926a
|
@ -10,7 +10,6 @@ import { ConfirmationService } from 'primeng/primeng';
|
|||
|
||||
import { Zone, Host, Port, Service, DiscoverHost } from '@overflow/model/discovery';
|
||||
import { RPCSubscriber } from '@overflow/commons/ui/decorator/RPCSubscriber';
|
||||
import { TypeUtil } from '@overflow/core-js';
|
||||
import { RPCError } from '@overflow/rpc-js';
|
||||
import { toMetaIPType, MetaIPTypeEnum, toMetaCryptoType, MetaCryptoTypeEnum, toMetaPortType, MetaPortTypeEnum } from '@overflow/model/meta';
|
||||
import { DiscoveryModeType } from '@overflow/model/discovery/discovery';
|
||||
|
|
|
@ -22,7 +22,9 @@ export class ElectronProxyService {
|
|||
private bindIpcEventHandlers(): void {
|
||||
ipcRenderer.on(
|
||||
'menu-event',
|
||||
(event: Electron.IpcMessageEvent, { name }: { name: MenuEvent }) => {}
|
||||
(event: Electron.IpcMessageEvent, { name }: { name: MenuEvent }) => {
|
||||
console.log(`menu: ${name}`);
|
||||
}
|
||||
);
|
||||
|
||||
ipcRenderer.on(
|
||||
|
|
|
@ -2,9 +2,9 @@ export type MenuEvent =
|
|||
| 'save'
|
||||
| 'show-preferences'
|
||||
| 'show-about'
|
||||
| 'export-csv'
|
||||
| 'print'
|
||||
| 'language-english'
|
||||
| 'language-korean'
|
||||
| 'show-export-csv'
|
||||
| 'show-print'
|
||||
| 'change-language-english'
|
||||
| 'change-language-korean'
|
||||
|
||||
;
|
||||
|
|
|
@ -58,7 +58,7 @@ export function buildDefaultMenu(
|
|||
{
|
||||
label: __DARWIN__ ? 'CSV…' : 'CSV…',
|
||||
id: 'export-csv',
|
||||
click: emit('export-csv'),
|
||||
click: emit('show-export-csv'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -66,7 +66,7 @@ export function buildDefaultMenu(
|
|||
{
|
||||
label: __DARWIN__ ? 'Print…' : 'Print…',
|
||||
id: 'print',
|
||||
click: emit('print'),
|
||||
click: emit('show-print'),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
@ -157,12 +157,12 @@ export function buildDefaultMenu(
|
|||
{
|
||||
label: __DARWIN__ ? 'English…' : 'English…',
|
||||
id: 'language-english',
|
||||
click: emit('language-english'),
|
||||
click: emit('change-language-english'),
|
||||
},
|
||||
{
|
||||
label: __DARWIN__ ? 'Korean…' : 'Korean…',
|
||||
id: 'language-korean',
|
||||
click: emit('language-korean'),
|
||||
click: emit('change-language-korean'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user