Merge pull request '[desktop] for bug 71691' (#138) from fix/bug-71691 into hotfix/v8.2.2

This commit is contained in:
Maxim Kadushkin
2024-11-23 21:48:18 +00:00
2 changed files with 6 additions and 0 deletions

View File

@ -663,6 +663,11 @@ define([
native.execCommand('editor:event', JSON.stringify({action:'file:close', url: config.customization.goback.url}));
}
},
removeRecent: function () {
if ( config.isDesktopApp && !!native ) {
native.execCommand('recent:forget');
}
},
isActive: function () {
return !!native;
},

View File

@ -696,6 +696,7 @@ define([
me.api.asc_SendForm();
Common.Controllers.Desktop.process('goback');
Common.Controllers.Desktop.requestClose();
Common.Controllers.Desktop.removeRecent();
});
me.view.btnDownload.on('click', function(){
if (me.appOptions.canDownload) {