diff --git a/desktop-app/src/app/header/header.component.html b/desktop-app/src/app/header/header.component.html index 18cd98f..0cc29df 100644 --- a/desktop-app/src/app/header/header.component.html +++ b/desktop-app/src/app/header/header.component.html @@ -312,8 +312,8 @@ -
{{showAddFavourite? 'Hide' : 'Add New'}}
-
addAdd Current to favs
+
{{showAddFavourite? 'Hide' : 'Add New'}}
+
Add Current to favs

Manage Favourites

@@ -359,6 +359,6 @@
Cancel
-
Cancel
+
Save
diff --git a/desktop-app/src/app/header/header.component.ts b/desktop-app/src/app/header/header.component.ts index 2780991..69389ee 100644 --- a/desktop-app/src/app/header/header.component.ts +++ b/desktop-app/src/app/header/header.component.ts @@ -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; }