diff --git a/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx b/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx index 99f57ebdc2..1278e22347 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx @@ -63,7 +63,6 @@ const StatusbarController = inject('storeWorksheets', 'storeFocusObjects', 'user } storeWorksheets.resetSheets(items); - setTimeout(() => updateTabsColors()); }; const onApiActiveSheetChanged = (index) => { @@ -77,19 +76,13 @@ const StatusbarController = inject('storeWorksheets', 'storeFocusObjects', 'user f7.popover.close('.document-menu.modal-in', false); } - - const loadTabColor = sheetindex => { + const onApiUpdateTabColor = sheetindex => { const api = Common.EditorApi.get(); let tab = storeWorksheets.sheets.find(sheet => sheet.index === sheetindex); if (tab) { setTabLineColor(tab, api.asc_getWorksheetTabColor(sheetindex)); } - - }; - - const onApiUpdateTabColor = index => { - loadTabColor(index); }; const setTabLineColor = (tab, color) => { @@ -113,14 +106,6 @@ const StatusbarController = inject('storeWorksheets', 'storeFocusObjects', 'user } }; - const updateTabsColors = () => { - const api = Common.EditorApi.get(); - - storeWorksheets.sheets.forEach(model => { - setTabLineColor(model, api.asc_getWorksheetTabColor(model.index)); - }); - }; - return null; }));