|
|
|
|
@ -423,6 +423,12 @@ class EditorViewModel : ViewModel(), RowRepresentableDataSource, CardCentralizer |
|
|
|
|
if (playerCount != this.handHistory.numberOfPlayers) { |
|
|
|
|
this.clearSelection() // avoid crashes |
|
|
|
|
this.handSetup.tableSize = playerCount |
|
|
|
|
|
|
|
|
|
if (this.handSetup.straddlePositions.isNotEmpty()) { // avoid possible crashes |
|
|
|
|
this.handSetup.clearStraddles() |
|
|
|
|
this.straddlePositions.clear() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.handHistory.configure(this.handSetup) |
|
|
|
|
load() |
|
|
|
|
} |
|
|
|
|
|