1
0
mirror of git://jb55.com/damus synced 2024-09-19 19:46:51 +00:00

settings: add donation_percent to settings

This will be used in damus donations splits
This commit is contained in:
William Casarin 2023-05-14 20:49:56 -07:00
parent f9982e992a
commit 5aa0d6c3e1

View File

@ -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.