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
@@ -290,23 +290,6 @@ export class HeaderComponent implements OnInit {
}
);
}
closeApp() {
this.appService.remote.getCurrentWindow().close();
}
pingHeadset() {
this.isAlive = true;
}
minimizeApp() {
this.appService.remote.getCurrentWindow().minimize();
}
maximizeApp() {
const win = this.appService.remote.getCurrentWindow();
if (win.isMaximized()) {
win.unmaximize();
} else {
win.maximize();
}
}
async selectAppToInstall() {
let files = await this.appService.remote.dialog.showOpenDialog({
properties: ['openFile', 'multiSelections'],
@@ -322,20 +305,4 @@ export class HeaderComponent implements OnInit {
}
});
}
confirmRestore() {
this.spinnerService.showLoader();
this.spinnerService.setMessage('Restoring BMBF<br>Please Wait...');
this.beatonService.confirmRestore(this.adbService).then(r => {
this.spinnerService.hideLoader();
this.statusService.showStatus('BMBF Restored Successfully!!');
this.beatOnModal.openModal();
this.beatonService.checkHasRestore(this.adbService);
});
}
installAPK(name: string) {
return this.adbService.installAPK(this.appService.path.join(this.appService.appData, name), true, true);
}
removeText(text) {
this.replaceText = this.replaceText.filter(d => d !== text);
}
}