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

Commit 9acf5c8

Browse files
committed
Implement support for file dropping on menu bar icon
1 parent 0b21d88 commit 9acf5c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/server/api/menuBar.ts

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

107+
state.activeMenuBar.tray.on("drop-files", () => {
108+
notifyLaravel("events", {
109+
event: "\\Native\\Laravel\\Events\\MenuBar\\MenuBarDroppedFiles"
110+
});
111+
});
112+
107113
if (onlyShowContextWindow !== true) {
108114
state.activeMenuBar.tray.on("right-click", () => {
109115
notifyLaravel("events", {

0 commit comments

Comments
 (0)