Fix disabling the next-level button
This commit is contained in:
parent
c162445627
commit
f389f4d027
@ -3518,7 +3518,7 @@ class Conductor {
|
|||||||
update_nav_buttons() {
|
update_nav_buttons() {
|
||||||
this.nav_choose_level_button.disabled = !this.stored_game;
|
this.nav_choose_level_button.disabled = !this.stored_game;
|
||||||
this.nav_prev_button.disabled = !this.stored_game || this.level_index <= 0;
|
this.nav_prev_button.disabled = !this.stored_game || this.level_index <= 0;
|
||||||
this.nav_next_button.disabled = !this.stored_game || this.level_index >= this.stored_game.level_metadata.length;
|
this.nav_next_button.disabled = !this.stored_game || this.level_index >= this.stored_game.level_metadata.length - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
set_compat(ruleset, flags) {
|
set_compat(ruleset, flags) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user