Skip to content

Commit

Permalink
Merge pull request #8 from samzong/fix/dropdown-list
Browse files Browse the repository at this point in the history
🐛 fix(view): Fix cannot open dropdown list (resolve #7)
  • Loading branch information
samzong authored Sep 27, 2024
2 parents 911107d + 6bc90b0 commit 11e4a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
if let button = statusItem?.button {
button.title = "🤡"
button.target = self
button.action = #selector(toggleMenu)
}

setupMenu()
Expand All @@ -33,7 +34,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
func setupMenu() {
menu = NSMenu()
menu.minimumWidth = 200 // 设置固定宽
menu.allowsContextMenuPlugIns = true

// Current track info
let trackInfoItem = NSMenuItem(title: "No selected", action: nil, keyEquivalent: "")
Expand Down

0 comments on commit 11e4a69

Please sign in to comment.