mirror of
https://github.com/yJason/ClashX-Dashboard.git
synced 2026-02-04 10:02:26 +08:00
misc: Fix sidebar list highlight
This commit is contained in:
@@ -146,6 +146,12 @@ class DashboardViewContoller: NSViewController {
|
||||
if NSApp.activationPolicy() == .accessory {
|
||||
NSApp.setActivationPolicy(.regular)
|
||||
}
|
||||
|
||||
|
||||
// Fix sidebar list highlight
|
||||
let button = NSButton(frame: .zero)
|
||||
view.window?.contentView?.addSubview(button)
|
||||
view.window?.initialFirstResponder = button
|
||||
}
|
||||
|
||||
func reinitToolbar(_ items: [NSToolbarItem.Identifier]) {
|
||||
|
||||
Reference in New Issue
Block a user