Wait for the next/previous display promises before clearing info and set button sensitiveness

#14769
This commit is contained in:
Cédric Krier
2026-04-16 22:50:42 +02:00
parent a973cdd9f8
commit f07cf4dceb
+8 -8
View File
@@ -1011,18 +1011,18 @@
},
previous: function() {
return this.modified_save().then(() => {
var prm = this.screen.display_previous();
this.info_bar.clear();
this.set_buttons_sensitive();
return prm;
return this.screen.display_previous().then(() => {
this.info_bar.clear();
this.set_buttons_sensitive();
});
});
},
next: function() {
return this.modified_save().then(() => {
var prm = this.screen.display_next();
this.info_bar.clear();
this.set_buttons_sensitive();
return prm;
return this.screen.display_next().then(() => {
this.info_bar.clear();
this.set_buttons_sensitive();
});
});
},
search: function() {