details: https://code.tryton.org/tryton/commit/ed94d29b59c2
branch: default
user: Cédric Krier <[email protected]>
date: Thu Aug 20 15:19:36 2026 +0200
description:
Always set the cursor on reload
The screen looses the cursor because it is set inert.
diffstat:
sao/src/tab.js | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (34 lines):
diff -r 8ce283fc5187 -r ed94d29b59c2 sao/src/tab.js
--- a/sao/src/tab.js Thu Aug 20 15:13:37 2026 +0200
+++ b/sao/src/tab.js Thu Aug 20 15:19:36 2026 +0200
@@ -940,7 +940,6 @@
reload: function(test_modified=true) {
const reload = () => {
return this.screen.cancel_current().then(() => {
- var set_cursor = false;
var record_id = null;
if (this.screen.current_record) {
record_id = this.screen.current_record.id;
@@ -952,18 +951,17 @@
for (const record of this.screen.group) {
if (record.id == record_id) {
this.screen.current_record = record;
- set_cursor = true;
}
}
- return set_cursor;
});
} else {
this.refresh_resources(true);
}
- return set_cursor;
})
- .then(set_cursor => {
- return this.screen.display(set_cursor).then(() => {
+ .then(() => {
+ // Always set the cursor as the screen loose the cursor due
+ // to inert
+ return this.screen.display(true).then(() => {
this.info_bar.clear();
this.set_buttons_sensitive();
this.screen.count_tab_domain();