feat: moved RAM notification settings to the new selectors

This commit is contained in:
Serhiy Mytrovtsiy
2024-05-09 17:34:33 +02:00
parent eb882774bb
commit 2b70064eb5
4 changed files with 189 additions and 107 deletions

View File

@@ -36,7 +36,7 @@ class Notifications: NotificationsWrapper {
self.addArrangedSubview(PreferencesSection([
PreferencesRow(localizedString("Usage"), component: PreferencesSwitch(
action: self.toggleUsage, state: self.usageState,
with: StepperInput(self.usageLevel, range: NSRange(location: 1, length: 99), symbol: "%", callback: self.changeUsage)
with: StepperInput(self.usageLevel, callback: self.changeUsage)
))
]))
}