changed scrcpy path for adb on linux

This commit is contained in:
Your Name
2020-08-17 13:31:49 +01:00
parent 26be1764d2
commit a0d77146ae
8 changed files with 60 additions and 45 deletions
+7 -4
View File
@@ -152,19 +152,22 @@ export class FilesComponent implements OnInit {
Math.round((stats.bytesTransferred / 1024 / 1024) * 100) / 100 +
'MB';
})
.then(() => setTimeout(() => this.uploadFile(files, task), 500));
.then(() => {
return new Promise(resolve => {
setTimeout(() => this.uploadFile(files, task).then(() => resolve()), 500);
});
});
}
uploadFilesFromList(files: string[]) {
if (files !== undefined && files.length) {
return this.processService.addItem('restore_files', async task => {
task.status = 'Starting Upload to ' + this.currentPath;
this.uploadFile(files, task)
return this.uploadFile(files, task)
.then(() => {
setTimeout(() => {
this.open(this.currentPath);
task.status = 'Upload complete! ' + this.currentPath;
this.statusService.showStatus('Files/Folders uploaded successfully!');
}, 1500);
task.status = 'Upload complete!';
})
.catch(e => this.statusService.showStatus(e.toString(), true));
});