Skip to content

Commit

Permalink
Default to auto print badges just once
Browse files Browse the repository at this point in the history
  • Loading branch information
robbi5 committed Nov 13, 2024
1 parent fc86502 commit ecc4e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pretixscan/app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<ListPreference
android:dependency="pref_print_badges"
android:key="pref_auto_print_badges_option"
android:defaultValue="off"
android:defaultValue="once"
android:entries="@array/settings_valuelabels_auto_print_badges"
android:entryValues="@array/settings_values_auto_print_badges"
android:title="@string/preference_autobadgeprint_enable"
Expand Down

0 comments on commit ecc4e9d

Please sign in to comment.