mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: changed minimum macOS version to macOS 11.15 (Big Sur)
This commit is contained in:
@@ -28,10 +28,10 @@ public struct module_c {
|
||||
if let state = dict["State"] as? Bool {
|
||||
self.defaultState = state
|
||||
}
|
||||
if let symbol = dict["Symbol"] as? String, #available(macOS 11.0, *) {
|
||||
if let symbol = dict["Symbol"] as? String {
|
||||
self.icon = NSImage(systemSymbolName: symbol, accessibilityDescription: nil)
|
||||
}
|
||||
if self.icon == nil, #available(macOS 11.0, *), let symbol = dict["AlternativeSymbol"] as? String {
|
||||
if self.icon == nil, let symbol = dict["AlternativeSymbol"] as? String {
|
||||
self.icon = NSImage(systemSymbolName: symbol, accessibilityDescription: nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user