From f07cf4dceb057ffbe0cfe92a9d3905c2d59e87be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 16 Apr 2026 22:50:42 +0200 Subject: [PATCH] Wait for the next/previous display promises before clearing info and set button sensitiveness #14769 --- sao/src/tab.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sao/src/tab.js b/sao/src/tab.js index 8f116c8ba3..c1622d3ee3 100644 --- a/sao/src/tab.js +++ b/sao/src/tab.js @@ -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() {