Skip to content

Commit

Permalink
Force sync after switching subevent of same event (Z#23133998) (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm authored Oct 20, 2023
1 parent 4acdbb9 commit 1385798
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ class CheckInListSelectActivity : MorphingDialogActivity() {
checkInListAdapter = CheckInListAdapter(null)
progressBar.visibility = View.VISIBLE
val listOfLists = getAllLists()
if (forceSync || listOfLists.isEmpty()) {
val subeventChanged = !conf.eventSelection.map { it.subEventId ?: 0 }.contains(intent!!.getLongExtra(SUBEVENT_ID, 0))
if (forceSync || listOfLists.isEmpty() || subeventChanged) {
(application as PretixScan).syncLock.withLock {
syncSync()
}
Expand Down

0 comments on commit 1385798

Please sign in to comment.