From aac7806d0a25fc837abb9c792e451db9003b7b16 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Mon, 6 Dec 2021 14:06:16 +0300 Subject: [PATCH] [desktop] changed "close" event --- apps/common/main/lib/controller/Desktop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index f7497a130..cad284fe8 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -265,7 +265,7 @@ define([ 'FileMenu': { 'item:click': function (menu, action, isopts) { if ( action == 'file:exit' ) { - native.execCommand('editor:event', JSON.stringify({action: 'file:exit'})); + native.execCommand('editor:event', JSON.stringify({action: 'file:close'})); menu.hide(); } else if ( action == 'file:open' ) { @@ -300,7 +300,7 @@ define([ }, requestClose: function () { if ( config.isDesktopApp && !!native ) { - native.execCommand('editor:event', JSON.stringify({action:'close', url: config.customization.goback.url})); + native.execCommand('editor:event', JSON.stringify({action:'file:close', url: config.customization.goback.url})); } }, isActive: function () {