damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 5aa0d6c3e14f3e00ae1b9469704ac2c34354e1d5
parent f9982e992acbe40238b2c664db95133bccec9957
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 14 May 2023 20:49:56 -0700

settings: add donation_percent to settings

This will be used in damus donations splits

Diffstat:
Mdamus/Models/UserSettingsStore.swift | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/damus/Models/UserSettingsStore.swift b/damus/Models/UserSettingsStore.swift @@ -143,6 +143,9 @@ class UserSettingsStore: ObservableObject { @Setting(key: "disable_animation", default_value: UIAccessibility.isReduceMotionEnabled) var disable_animation: Bool + + @Setting(key: "donation_percent", default_value: 0) + var donation_percent: Int // Helper for inverse of disable_animation. // disable_animation was introduced as a setting first, but it's more natural for the settings UI to show the inverse.