misc: update setting icon config on os below 10.11
This commit is contained in:
parent
1d2abc3bb1
commit
a8e1df6cf4
|
@ -13,6 +13,12 @@ class SettingTabViewController: NSTabViewController {
|
|||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
tabStyle = .toolbar
|
||||
if #unavailable(macOS 10.11) {
|
||||
tabStyle = .segmentedControlOnTop
|
||||
tabViewItems.forEach { item in
|
||||
item.image = nil
|
||||
}
|
||||
}
|
||||
NSApp.activate(ignoringOtherApps: true)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue