fixed the vertial alignment of a few bits

This commit is contained in:
Shane Harris
2022-08-01 20:14:20 +01:00
parent 43278c6069
commit 52e83efc2d
2 changed files with 3 additions and 20 deletions
@@ -169,13 +169,6 @@ export class HeaderComponent implements OnInit {
favouriteList.push(favourite);
}
}
runscrcpy() {
this.scrcpy_options.device = this.adbService.deviceSerial;
this.appService
.runScrCpy(this.scrcpy_options)
.then(() => this.statusService.showStatus('Stream closed.'))
.catch(e => this.statusService.showStatus('ScrCpy Error: ' + JSON.stringify(e), true));
}
saveFavourites(type: string) {
localStorage.setItem(type, JSON.stringify(this.favourites[type]));
}
@@ -195,16 +188,6 @@ export class HeaderComponent implements OnInit {
this.statusService.showStatus(e, true);
});
}
connectWifi() {
this.adbCommandToRun = 'adb tcpip 5555';
this.adbService.deviceStatusMessage = 'Attempting wifi connection...';
(this.isConnected() ? this.runAdbCommand() : Promise.resolve()).then(() => {
setTimeout(() => {
this.adbCommandToRun = 'adb connect ' + this.adbService.deviceIp + ':5555';
this.runAdbCommand();
}, 5000);
});
}
isConnected() {
return this.adbService.deviceStatus === ConnectionStatus.CONNECTED;
}