feat: added macOS widget for GPU module

This commit is contained in:
Serhiy Mytrovtsiy
2024-07-17 19:34:51 +02:00
parent 71207f29fc
commit 80d7789ef7
8 changed files with 179 additions and 14 deletions

View File

@@ -77,13 +77,10 @@ open class Module {
config.name
}
public var combinedPosition: Int {
get {
Store.shared.int(key: "\(self.name)_position", defaultValue: 0)
}
set {
Store.shared.set(key: "\(self.name)_position", value: newValue)
}
get { Store.shared.int(key: "\(self.name)_position", defaultValue: 0) }
set { Store.shared.set(key: "\(self.name)_position", value: newValue) }
}
public var userDefaults: UserDefaults? = UserDefaults(suiteName: "eu.exelban.Stats.widgets")
private var settingsView: Settings_v? = nil
private var popup: PopupWindow? = nil