mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added Mini widget to the Sensors module. It has quite a lot of limitations and only one sensor could be visualized (I hope understandable why) (#2029)
This commit is contained in:
@@ -131,9 +131,9 @@ class ApplicationSettings: NSStackView {
|
||||
))
|
||||
])
|
||||
scrollView.stackView.addArrangedSubview(self.combinedModulesView!)
|
||||
self.combinedModulesView?.toggleVisibility(1, newState: self.combinedModulesState)
|
||||
self.combinedModulesView?.toggleVisibility(2, newState: self.combinedModulesState)
|
||||
self.combinedModulesView?.toggleVisibility(3, newState: self.combinedModulesState)
|
||||
self.combinedModulesView?.setRowVisibility(1, newState: self.combinedModulesState)
|
||||
self.combinedModulesView?.setRowVisibility(2, newState: self.combinedModulesState)
|
||||
self.combinedModulesView?.setRowVisibility(3, newState: self.combinedModulesState)
|
||||
|
||||
scrollView.stackView.addArrangedSubview(PreferencesSection([
|
||||
PreferencesRow(
|
||||
@@ -292,9 +292,9 @@ class ApplicationSettings: NSStackView {
|
||||
|
||||
@objc private func toggleCombinedModules(_ sender: NSButton) {
|
||||
self.combinedModulesState = sender.state == NSControl.StateValue.on
|
||||
self.combinedModulesView?.toggleVisibility(1, newState: self.combinedModulesState)
|
||||
self.combinedModulesView?.toggleVisibility(2, newState: self.combinedModulesState)
|
||||
self.combinedModulesView?.toggleVisibility(3, newState: self.combinedModulesState)
|
||||
self.combinedModulesView?.setRowVisibility(1, newState: self.combinedModulesState)
|
||||
self.combinedModulesView?.setRowVisibility(2, newState: self.combinedModulesState)
|
||||
self.combinedModulesView?.setRowVisibility(3, newState: self.combinedModulesState)
|
||||
NotificationCenter.default.post(name: .toggleOneView, object: nil, userInfo: nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user