Skip to content

Commit

Permalink
Adding unique identifier to menu items #2
Browse files Browse the repository at this point in the history
  • Loading branch information
melonamin committed Feb 6, 2021
1 parent 56316b1 commit b92daa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SwiftBar/MenuBar/MenuBarItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class MenubarItem: NSObject {
return
}
self.plugin = plugin
barItem.autosaveName = plugin?.id
statusBarMenu.delegate = self
if let dropTypes = plugin?.metadata?.dropTypes, !dropTypes.isEmpty {
barItem.button?.window?.registerForDraggedTypes([NSPasteboard.PasteboardType.fileURL])
Expand Down

0 comments on commit b92daa6

Please sign in to comment.