mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
chore: update wiki
This commit is contained in:
parent
07b6edf9df
commit
60f3b68648
2 changed files with 1 additions and 5 deletions
|
|
@ -264,12 +264,8 @@ export class MenuService implements IMenuService {
|
|||
/** Register `on('context-menu', openContextMenuForWindow)` for a window, return an unregister function */
|
||||
public async initContextMenuForWindowWebContents(webContents: WebContents): Promise<() => void> {
|
||||
const openContextMenuForWindow = async (event: Electron.Event, parameters: ContextMenuParams): Promise<void> => {
|
||||
// DEBUG: console event
|
||||
console.log(`event`, event);
|
||||
await this.buildContextMenuAndPopup([], parameters, webContents);
|
||||
};
|
||||
// DEBUG: console webContents
|
||||
console.log(`webContents`, webContents);
|
||||
webContents.on('context-menu', openContextMenuForWindow);
|
||||
|
||||
return () => {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 7ebcc8086930f061d365e5f2e00c853db4e6cf6f
|
||||
Subproject commit 5d3e8703e70010e0ccbad3271cabc13aa8b57f03
|
||||
Loading…
Add table
Add a link
Reference in a new issue