From 5649f24d070614e080e5b2042619de93400a2a10 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Sun, 25 Aug 2024 14:30:10 +0200 Subject: [PATCH] v2.11.7 --- Modules/CPU/popup.swift | 4 ++-- Modules/Net/popup.swift | 4 ++-- Modules/Net/settings.swift | 8 ++++---- Modules/RAM/popup.swift | 4 ++-- Stats.xcodeproj/project.pbxproj | 4 ++-- Stats/Supporting Files/Info.plist | 2 +- Widgets/Supporting Files/Info.plist | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Modules/CPU/popup.swift b/Modules/CPU/popup.swift index ec7d3b8ac05..648986f1d7a 100644 --- a/Modules/CPU/popup.swift +++ b/Modules/CPU/popup.swift @@ -530,7 +530,7 @@ internal class Popup: PopupWrapper { PreferencesRow(localizedString("Scale value"), component: self.sliderView!) ]) view.addArrangedSubview(self.chartPrefSection!) - self.chartPrefSection?.toggleVisibility(3, newState: self.lineChartScale == .fixed) + self.chartPrefSection?.setRowVisibility(3, newState: self.lineChartScale == .fixed) return view } @@ -597,7 +597,7 @@ internal class Popup: PopupWrapper { @objc private func toggleLineChartScale(_ sender: NSMenuItem) { guard let key = sender.representedObject as? String, let value = Scale.allCases.first(where: { $0.key == key }) else { return } - self.chartPrefSection?.toggleVisibility(3, newState: value == .fixed) + self.chartPrefSection?.setRowVisibility(3, newState: value == .fixed) self.lineChartScale = value self.lineChart?.setScale(self.lineChartScale, fixedScale: self.lineChartFixedScale) Store.shared.set(key: "\(self.title)_lineChartScale", value: key) diff --git a/Modules/Net/popup.swift b/Modules/Net/popup.swift index 1c402692a97..ad3266db52c 100644 --- a/Modules/Net/popup.swift +++ b/Modules/Net/popup.swift @@ -582,7 +582,7 @@ internal class Popup: PopupWrapper { )) ]) view.addArrangedSubview(self.chartPrefSection!) - self.chartPrefSection?.toggleVisibility(2, newState: self.chartScale == .fixed) + self.chartPrefSection?.setRowVisibility(2, newState: self.chartScale == .fixed) view.addArrangedSubview(PreferencesSection([ PreferencesRow(localizedString("Public IP"), component: switchView( @@ -639,7 +639,7 @@ internal class Popup: PopupWrapper { let value = Scale.allCases.first(where: { $0.key == key }) else { return } self.chartScale = value self.chart?.setScale(self.chartScale, Double(self.chartFixedScaleSize.toBytes(self.chartFixedScale))) - self.chartPrefSection?.toggleVisibility(2, newState: self.chartScale == .fixed) + self.chartPrefSection?.setRowVisibility(2, newState: self.chartScale == .fixed) Store.shared.set(key: "\(self.title)_chartScale", value: key) self.display() } diff --git a/Modules/Net/settings.swift b/Modules/Net/settings.swift index 7a636d4bd0a..9c5f6f9ce74 100644 --- a/Modules/Net/settings.swift +++ b/Modules/Net/settings.swift @@ -141,7 +141,7 @@ internal class Settings: NSStackView, Settings_v, NSTextFieldDelegate { ))) } let section = PreferencesSection(prefs) - section.toggleVisibility(1, newState: self.readerType == "interface") + section.setRowVisibility(1, newState: self.readerType == "interface") self.addArrangedSubview(section) self.section = section @@ -155,7 +155,7 @@ internal class Settings: NSStackView, Settings_v, NSTextFieldDelegate { )) ]) self.addArrangedSubview(self.widgetThresholdSection!) - self.widgetThresholdSection?.toggleVisibility(1, newState: self.widgetActivationThresholdState) + self.widgetThresholdSection?.setRowVisibility(1, newState: self.widgetActivationThresholdState) let valueField: NSTextField = NSTextField() valueField.widthAnchor.constraint(equalToConstant: 250).isActive = true @@ -199,7 +199,7 @@ internal class Settings: NSStackView, Settings_v, NSTextFieldDelegate { guard let key = sender.representedObject as? String else { return } self.readerType = key Store.shared.set(key: "\(self.title)_reader", value: key) - self.section?.toggleVisibility(1, newState: self.readerType == "interface") + self.section?.setRowVisibility(1, newState: self.readerType == "interface") NotificationCenter.default.post(name: .resetTotalNetworkUsage, object: nil, userInfo: nil) } @objc private func toggleUsageReset(_ sender: NSMenuItem) { @@ -215,7 +215,7 @@ internal class Settings: NSStackView, Settings_v, NSTextFieldDelegate { @objc func toggleWidgetActivationThreshold(_ sender: NSControl) { self.widgetActivationThresholdState = controlState(sender) Store.shared.set(key: "\(self.title)_widgetActivationThresholdState", value: self.widgetActivationThresholdState) - self.widgetThresholdSection?.toggleVisibility(1, newState: self.widgetActivationThresholdState) + self.widgetThresholdSection?.setRowVisibility(1, newState: self.widgetActivationThresholdState) } @objc private func changeWidgetActivationThreshold(_ newValue: Int) { self.widgetActivationThreshold = newValue diff --git a/Modules/RAM/popup.swift b/Modules/RAM/popup.swift index 07938ac2889..182e8c6634d 100644 --- a/Modules/RAM/popup.swift +++ b/Modules/RAM/popup.swift @@ -333,7 +333,7 @@ internal class Popup: PopupWrapper { )), PreferencesRow(localizedString("Scale value"), component: self.sliderView!) ]) - self.chartPrefSection?.toggleVisibility(3, newState: self.lineChartScale == .fixed) + self.chartPrefSection?.setRowVisibility(3, newState: self.lineChartScale == .fixed) view.addArrangedSubview(self.chartPrefSection!) return view @@ -403,7 +403,7 @@ internal class Popup: PopupWrapper { @objc private func toggleLineChartScale(_ sender: NSMenuItem) { guard let key = sender.representedObject as? String, let value = Scale.allCases.first(where: { $0.key == key }) else { return } - self.chartPrefSection?.toggleVisibility(3, newState: value == .fixed) + self.chartPrefSection?.setRowVisibility(3, newState: value == .fixed) self.lineChartScale = value self.chart?.setScale(self.lineChartScale, fixedScale: self.lineChartFixedScale) Store.shared.set(key: "\(self.title)_lineChartScale", value: key) diff --git a/Stats.xcodeproj/project.pbxproj b/Stats.xcodeproj/project.pbxproj index 9c8fd342090..55a143f0713 100644 --- a/Stats.xcodeproj/project.pbxproj +++ b/Stats.xcodeproj/project.pbxproj @@ -2837,7 +2837,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 2.11.6; + MARKETING_VERSION = 2.11.7; OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -2875,7 +2875,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 2.11.6; + MARKETING_VERSION = 2.11.7; OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index f25c66df27b..873141a1127 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 583 + 586 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType diff --git a/Widgets/Supporting Files/Info.plist b/Widgets/Supporting Files/Info.plist index 725feb5e782..a205e002e1c 100644 --- a/Widgets/Supporting Files/Info.plist +++ b/Widgets/Supporting Files/Info.plist @@ -11,9 +11,9 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleShortVersionString - 2.11.6 + 2.11.7 CFBundleVersion - 583 + 586 NSExtension NSExtensionPointIdentifier