Skip to content

Commit

Permalink
misc: update setting icon config on os below 10.11
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengchen committed Sep 5, 2023
1 parent 1d2abc3 commit a8e1df6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit a8e1df6

Please sign in to comment.