Skip to content

Commit 582d604

Browse files
author
zhongzengqiang
committed
solve popup fail issue
1 parent 2d1f0bd commit 582d604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ShadowsocksX-NG/StatusItemView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ open class StatusItemView: NSControl {
126126
// action
127127
extension StatusItemView: NSMenuDelegate {
128128
override open func mouseDown(with theEvent: NSEvent) {
129-
statusItem.menu = menu
129+
statusItem.popUpMenu(menu!)
130130
}
131131

132132
public func menuWillOpen(_ menu: NSMenu) {

0 commit comments

Comments
 (0)