nostrscript: add a helper function
This commit is contained in:
1 parent
a6cbf50def
commit
30e33a01c1
9 files changed
+98
-3
No files matched your search
@@ -15,7 +15,7 @@ let fallback_zap_amount = 1000
|
||||
private var value: T
|
||||
|
||||
init(key: String, default_value: T) {
|
||||
if T is bool {
|
||||
if T.self == Bool.self {
|
||||
UserSettingsStore.bool_options.insert(key)
|
||||
}
|
||||
self.key = pk_setting_key(UserSettingsStore.pubkey ?? "", key: key)
|
||||
|
||||
Reference in new issue
Block a user