From 92769acd60bc31548ff7c635128d4e7ef02b7325 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 7 Jul 2023 16:35:40 +0100 Subject: [PATCH] Ensure apps are always uploaded localized --- js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/index.js b/js/index.js index 7bd6f62..e4e93c1 100644 --- a/js/index.js +++ b/js/index.js @@ -842,7 +842,7 @@ function updateApp(app, options) { showToast(`Updating ${app.name}...`); device.appsInstalled = device.appsInstalled.filter(a=>a.id!=app.id); return checkDependencies(app,{checkForClashes:false}); - }).then(()=>Comms.uploadApp(app,{device:device,noReset:options.noReset, noFinish:options.noFinish}) + }).then(()=>Comms.uploadApp(app,{device:device,language:LANGUAGE,noReset:options.noReset, noFinish:options.noFinish}) ).then((appJSON) => { if (appJSON) device.appsInstalled.push(appJSON); showToast(app.name+" Updated!", "success"); @@ -1006,7 +1006,7 @@ function installMultipleApps(appIds, promptName) { if (app===undefined) return resolve(); Progress.show({title:`${app.name} (${appCount-apps.length}/${appCount})`,sticky:true}); checkDependencies(app,{device:device, noReset:true, noFinish:true}) - .then(()=>Comms.uploadApp(app,{device:device, noReset:true, noFinish:true})) + .then(()=>Comms.uploadApp(app,{device:device, language:LANGUAGE, noReset:true, noFinish:true})) .then((appJSON) => { Progress.hide({sticky:true}); if (appJSON) device.appsInstalled.push(appJSON);