fixed the app selection dialog issue
This commit is contained in:
@@ -305,26 +305,20 @@ export class HeaderComponent implements OnInit {
|
|||||||
openDebugger() {
|
openDebugger() {
|
||||||
this.appService.remote.getCurrentWindow().toggleDevTools();
|
this.appService.remote.getCurrentWindow().toggleDevTools();
|
||||||
}
|
}
|
||||||
selectAppToInstall() {
|
async selectAppToInstall() {
|
||||||
console.log('selectAppToInstall');
|
let files = await this.appService.electron.remote.dialog.showOpenDialog({
|
||||||
this.appService.electron.remote.dialog.showOpenDialog(
|
properties: ['openFile', 'multiSelections'],
|
||||||
{
|
defaultPath: this.adbService.savePath,
|
||||||
properties: ['openFile', 'multiSelections'],
|
});
|
||||||
defaultPath: this.adbService.savePath,
|
files.forEach(filepath => {
|
||||||
},
|
this.adbService.savePath = this.appService.path.dirname(filepath);
|
||||||
files => {
|
let install = this.adbService.installMultiFile(filepath);
|
||||||
console.log('done!');
|
if (install) {
|
||||||
files.forEach(filepath => {
|
install.catch(e => {
|
||||||
this.adbService.savePath = this.appService.path.dirname(filepath);
|
this.statusService.showStatus(e.toString(), true);
|
||||||
let install = this.adbService.installMultiFile(filepath);
|
|
||||||
if (install) {
|
|
||||||
install.catch(e => {
|
|
||||||
this.statusService.showStatus(e.toString(), true);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
confirmRestore() {
|
confirmRestore() {
|
||||||
this.spinnerService.showLoader();
|
this.spinnerService.showLoader();
|
||||||
|
|||||||
Reference in New Issue
Block a user