mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: moved all modules to the new way of reader mode with a small refactoring
This commit is contained in:
@@ -26,8 +26,8 @@ internal class Settings: NSStackView, Settings_v {
|
||||
private var hyperthreadView: NSView? = nil
|
||||
private var button: NSPopUpButton?
|
||||
|
||||
public init(_ title: String) {
|
||||
self.title = title
|
||||
public init(_ module: ModuleType) {
|
||||
self.title = module.rawValue
|
||||
self.selectedGPU = Store.shared.string(key: "\(self.title)_gpu", defaultValue: "")
|
||||
self.updateIntervalValue = Store.shared.int(key: "\(self.title)_updateInterval", defaultValue: self.updateIntervalValue)
|
||||
self.showTypeValue = Store.shared.bool(key: "\(self.title)_showType", defaultValue: self.showTypeValue)
|
||||
|
||||
Reference in New Issue
Block a user