diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index 13d5456720..2e307a73ac 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -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; }, diff --git a/apps/documenteditor/forms/app/controller/ApplicationController.js b/apps/documenteditor/forms/app/controller/ApplicationController.js index 17f6bb50f0..9d29f7a24f 100644 --- a/apps/documenteditor/forms/app/controller/ApplicationController.js +++ b/apps/documenteditor/forms/app/controller/ApplicationController.js @@ -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) {