From ecc4e9d37db8d2b1bef416314d4aa3c4c54b9556 Mon Sep 17 00:00:00 2001 From: Maximilian Richt Date: Wed, 13 Nov 2024 14:42:15 +0100 Subject: [PATCH] Default to auto print badges just once --- .../app/src/main/java/eu/pretix/pretixscan/droid/AppConfig.kt | 2 +- pretixscan/app/src/main/res/xml/preferences.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/AppConfig.kt b/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/AppConfig.kt index 891828e..63a380d 100644 --- a/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/AppConfig.kt +++ b/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/AppConfig.kt @@ -365,7 +365,7 @@ class AppConfig(ctx: Context) : ConfigStore { set(value) = default_prefs.edit().putBoolean(PREFS_KEY_PRINTBADGES, value).apply() var autoPrintBadges: String - get() = default_prefs.getString(PREFS_KEY_AUTOPRINTBADGES, "false") ?: "false" + get() = default_prefs.getString(PREFS_KEY_AUTOPRINTBADGES, "once") ?: "once" set(value) = default_prefs.edit().putString(PREFS_KEY_AUTOPRINTBADGES, value).apply() var printBadgesTwice: Boolean diff --git a/pretixscan/app/src/main/res/xml/preferences.xml b/pretixscan/app/src/main/res/xml/preferences.xml index 9b7013e..4a4a166 100644 --- a/pretixscan/app/src/main/res/xml/preferences.xml +++ b/pretixscan/app/src/main/res/xml/preferences.xml @@ -58,7 +58,7 @@