fixed the popup when you unplug the cable

This commit is contained in:
Shane Harris
2022-08-02 18:59:29 +01:00
parent 0d440c2d8d
commit ba0fc5d54b
7 changed files with 73 additions and 128 deletions
+2 -3
View File
@@ -65,14 +65,13 @@ export class ElectronService {
async installFromToken(token) {
let res = await this.adbService.adbCommand('installFromToken', { token });
console.log(res);
res.forEach((l, i) => {
switch (l.type) {
case 'Mod':
this.beatonService.downloadSong(l.url, this.adbService);
break;
case 'APK':
this.adbService.installAPK(l.url, false, false, i + 1, res.length, false, l.name);
this.adbService.installAPK(l.url, false, false, i + 1, res.length, false, l.name + ': ');
break;
case 'OBB':
this.adbService.installObb(l.url, i + 1, res.length, l.name);
@@ -95,7 +94,7 @@ export class ElectronService {
this.adbService.installObb(data.url, 0, 0, data.name);
break;
case '.apk':
this.adbService.installAPK(data.url, false, false, 0, 0, true, data.name);
this.adbService.installAPK(data.url, false, false, 0, 0, true, data.name + ': ');
break;
}
});