From d677889709c83e384a73c87dc53c716ca7c2ffb3 Mon Sep 17 00:00:00 2001 From: Dmitry-Ilyushechkin Date: Wed, 27 Aug 2025 23:26:13 +0300 Subject: [PATCH] refactoring --- .../mobile/src/controller/LongActions.jsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx b/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx index c32eb25ff7..335960b7ae 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx @@ -61,14 +61,7 @@ const LongActionsController = inject('storeAppOptions')(({storeAppOptions}) => { const onLongActionBegin = (type, id) => { const action = {id: id, type: type}; stackLongActions.push(action); - - if (id===Asc.c_oAscAsyncAction['LoadDocumentFonts']) { - showTimer = setTimeout(() => { - setLongActionView(action); - showTimer = null; - }, 10); - } else setLongActionView(action); - + setLongActionView(action); }; const onLongActionEnd = (type, id, forceClose) => { @@ -201,7 +194,9 @@ const LongActionsController = inject('storeAppOptions')(({storeAppOptions}) => { } else if ($$('.dialog-preloader').hasClass('modal-in')) { $$('.dialog-preloader').find('dialog-title').text(title); } else { - loadMask = f7.dialog.preloader(title); + showTimer = setTimeout(() => { + loadMask = f7.dialog.preloader(title); + }, 300); } }