fix index remaining when player is destroyed
This commit is contained in:
parent
d78b9b275f
commit
75760e2354
1 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,12 @@ Singleton {
|
|||
property int currentIndex: 0
|
||||
}
|
||||
|
||||
onPlayersChanged: {
|
||||
if (!active) {
|
||||
properties.currentIndex = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function nextPlayer() {
|
||||
if (players.length == 0) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue