From 1adede6a399d519488ef9dadeacea3cc54accd6a Mon Sep 17 00:00:00 2001 From: jparez Date: Mon, 5 Aug 2024 13:50:33 +0200 Subject: [PATCH] send gappas only after installation --- src/plugins/FileUpload.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/plugins/FileUpload.js b/src/plugins/FileUpload.js index bc455ac..60676df 100644 --- a/src/plugins/FileUpload.js +++ b/src/plugins/FileUpload.js @@ -277,13 +277,6 @@ module.exports = class FileUpload extends OverlayPlugin { textProgress.innerHTML = this.i18n.UPLOADER_INSTALLING || 'Installing...'; } else if (data[0] === 'ready' && data.length >= 2) { if (data[1].indexOf('opengapps') !== -1) { - this.instance.store.dispatch({ - type: 'ADD_TRACKED_EVENT', - payload: { - category: 'opengapps', - type: 'installed', - }, - }); this.updateOpenGAppsStatus(true); } @@ -313,6 +306,13 @@ module.exports = class FileUpload extends OverlayPlugin { this.toggleWidget(); } this.flashing = false; + this.instance.store.dispatch({ + type: 'ADD_TRACKED_EVENT', + payload: { + category: 'opengapps', + action: 'installed', + }, + }); break; case 'unavailable': case 'network_error':