-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-22: Committing changes before starting to fix cyclic dependencies.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
- Loading branch information
Showing
3 changed files
with
13 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
src/application/electron-browser/menu/context-menu-renderer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { inject, injectable } from "inversify"; | ||
import { MainMenuFactory } from "./menu-plugin"; | ||
import { ContextMenuRenderer } from "../../browser/menu/context-menu-renderer"; | ||
import { Anchor, ContextMenuRenderer } from "../../browser/menu/context-menu-renderer"; | ||
|
||
@injectable() | ||
export class ElectronContextMenuRenderer implements ContextMenuRenderer { | ||
|
||
constructor( | ||
@inject(MainMenuFactory) private menuFactory: MainMenuFactory) {} | ||
constructor( @inject(MainMenuFactory) private menuFactory: MainMenuFactory) { | ||
} | ||
|
||
render(path: string, event: MouseEvent): void { | ||
render(path: string, anchor: Anchor): void { | ||
const menu = this.menuFactory.createContextMenu(path); | ||
|
||
menu.popup(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters