Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit a0c0d71

Browse files
authored
Merge pull request #16 from ArondeParon/main
Implement support for file dropping on menu bar icon
2 parents 8656432 + 8b348f0 commit a0c0d71

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/server/api/menuBar.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ router.post("/create", (req, res) => {
104104
});
105105
});
106106

107+
state.activeMenuBar.tray.on("drop-files", (event, files) => {
108+
notifyLaravel("events", {
109+
event: "\\Native\\Laravel\\Events\\MenuBar\\MenuBarDroppedFiles",
110+
payload: [
111+
files
112+
]
113+
});
114+
});
115+
107116
if (onlyShowContextWindow !== true) {
108117
state.activeMenuBar.tray.on("right-click", () => {
109118
notifyLaravel("events", {

0 commit comments

Comments
 (0)