bgsave: restore modified status overlay in classic toolbar mode.

Apparently a transient victim of the transition to JSDialog.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I93c55db28d8ab2cc6b43dbce558d60dfa523fa76
pull/9099/head
Michael Meeks 2024-05-18 12:29:18 +01:00
parent 08af75d52d
commit 00237a3552
2 changed files with 8 additions and 9 deletions

View File

@ -171,8 +171,7 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({
if (state === 'true') {
document.getElementById('save').classList.add('savemodified');
document.getElementById('file-save').classList.add('savemodified');
}
else {
} else {
document.getElementById('save').classList.remove('savemodified');
document.getElementById('file-save').classList.remove('savemodified');
}

View File

@ -793,13 +793,13 @@ function processStateChangedCommand(commandName, state) {
}
}
else if (commandName === '.uno:ModifiedStatus') {
// // TODO: topToolbar case
// if (state === 'true') {
// toolbar.set('save', {img:'savemodified'});
// }
// else {
// toolbar.set('save', {img:'save'});
// }
if (document.getElementById('save')) {
if (state === 'true')
document.getElementById('save').classList.add('savemodified');
else
document.getElementById('save').classList.remove('savemodified');
}
state = ''; // stop processing below
}
else if (commandName === '.uno:DocumentRepair') {
if (state === 'true') {