Skip to content

Commit 591d9a9

Browse files
committed
Add a standard basic context menu options
1 parent 3e933a3 commit 591d9a9

File tree

3 files changed

+77
-7
lines changed

3 files changed

+77
-7
lines changed

package-lock.json

Lines changed: 71 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
},
8080
"dependencies": {
8181
"electron-compile": "^6.4.4",
82+
"electron-context-menu": "^0.10.1",
8283
"electron-squirrel-startup": "^1.0.0",
8384
"tslib": "^1.4.0"
8485
},

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import * as os from 'os';
33
import * as path from 'path';
44
import { app, BrowserWindow, shell } from 'electron';
55

6+
import * as registerContextMenu from 'electron-context-menu';
7+
registerContextMenu({
8+
showSaveImageAs: true
9+
});
10+
611
const packageJson = require('../package.json');
712

813
const isWindows = os.platform() === 'win32';

0 commit comments

Comments
 (0)