Skip to content

Commit

Permalink
Feature/context menu helper (#140)
Browse files Browse the repository at this point in the history
* 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 <simon.hamp@me.com>

* 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 <simon.hamp@me.com>
  • Loading branch information
gwleuverink and simonhamp authored Dec 1, 2024
1 parent 22a5e48 commit 0e1cb65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/js/electron-plugin/src/preload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const Native = {
return callback(data.payload, event);
}
})
},
contextMenu: (template) => {
let menu = remote.Menu.buildFromTemplate(template);
menu.popup({ window: remote.getCurrentWindow() });
}
};

Expand Down

0 comments on commit 0e1cb65

Please sign in to comment.