mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: added feature to set keyboard shortcut to open/close popup window (#1976)
This commit is contained in:
@@ -78,10 +78,14 @@ open class Module {
|
||||
}
|
||||
public var combinedPosition: Int {
|
||||
get { Store.shared.int(key: "\(self.name)_position", defaultValue: 0) }
|
||||
set { Store.shared.set(key: "\(self.name)_position", value: newValue) }
|
||||
set { Store.shared.set(key: "\(self.name)_position", value: newValue) }
|
||||
}
|
||||
public var userDefaults: UserDefaults? = UserDefaults(suiteName: "\(Bundle.main.object(forInfoDictionaryKey: "TeamId") as! String).eu.exelban.Stats.widgets")
|
||||
|
||||
public var popupKeyboardShortcut: [UInt16] {
|
||||
return self.popupView?.keyboardShortcut ?? []
|
||||
}
|
||||
|
||||
private var moduleType: ModuleType
|
||||
|
||||
private var settingsView: Settings_v? = nil
|
||||
|
||||
Reference in New Issue
Block a user