Add OnlyZaps Mode
Changelog-Added: Add OnlyZaps mode: disable reactions, only zaps!
This commit is contained in:
@@ -14,14 +14,6 @@ struct AppearanceSettingsView: View {
|
||||
|
||||
var body: some View {
|
||||
Form {
|
||||
Section(header: Text(NSLocalizedString("Reactions", comment: "Section header for reaction settings"))) {
|
||||
Toggle(NSLocalizedString("Hide Reactions", comment: "Setting to hide reactions."), isOn: $settings.hide_reactions)
|
||||
.toggleStyle(.switch)
|
||||
.onChange(of: settings.hide_reactions) { newVal in
|
||||
notify(.hide_reactions, newVal)
|
||||
}
|
||||
}
|
||||
|
||||
Section(header: Text(NSLocalizedString("Text Truncation", comment: "Section header for damus text truncation user configuration"))) {
|
||||
Toggle(NSLocalizedString("Truncate timeline text", comment: "Setting to truncate text in timeline"), isOn: $settings.truncate_timeline_text)
|
||||
.toggleStyle(.switch)
|
||||
|
||||
@@ -24,6 +24,18 @@ struct ZapSettingsView: View {
|
||||
|
||||
var body: some View {
|
||||
Form {
|
||||
Section(
|
||||
header: Text(NSLocalizedString("OnlyZaps", comment: "Section header for enabling OnlyZaps mode (hide reactions)")),
|
||||
footer: Text(NSLocalizedString("Hide all 🤙's. Others will not be able to send you 🤙's", comment: "Section footer describing onlyzaps mode"))
|
||||
|
||||
) {
|
||||
Toggle(NSLocalizedString("Enable OnlyZaps mode", comment: "Setting toggle to hide reactions."), isOn: $settings.onlyzaps_mode)
|
||||
.toggleStyle(.switch)
|
||||
.onChange(of: settings.onlyzaps_mode) { newVal in
|
||||
notify(.onlyzaps_mode, newVal)
|
||||
}
|
||||
}
|
||||
|
||||
Section(NSLocalizedString("Wallet", comment: "Title for section in zap settings that controls the Lightning wallet selection.")) {
|
||||
|
||||
Toggle(NSLocalizedString("Show wallet selector", comment: "Toggle to show or hide selection of wallet."), isOn: $settings.show_wallet_selector).toggleStyle(.switch)
|
||||
|
||||
Reference in New Issue
Block a user