Skip to content

Commit 0e1cb65

Browse files
Feature/context menu helper (#140)
* remove commented env merge * fix typo * forward native env variables to child process * Build plugin * Update resources/js/electron-plugin/src/server/api/childProcess.ts Co-authored-by: Simon Hamp <[email protected]> * Build plugin * add php endpoint with native env variables * extract defaultPhpIniSettings function * mix in php ini settings * boyscouting - cleanup startQueueWorker * Build plugin * Code style * merge defaults with user configured ini settings * Build plugin * tidy * add context menu helper --------- Co-authored-by: Simon Hamp <[email protected]>
1 parent 22a5e48 commit 0e1cb65

File tree

1 file changed

+4
-0
lines changed
  • resources/js/electron-plugin/src/preload

1 file changed

+4
-0
lines changed

resources/js/electron-plugin/src/preload/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const Native = {
1111
return callback(data.payload, event);
1212
}
1313
})
14+
},
15+
contextMenu: (template) => {
16+
let menu = remote.Menu.buildFromTemplate(template);
17+
menu.popup({ window: remote.getCurrentWindow() });
1418
}
1519
};
1620

0 commit comments

Comments
 (0)