fixed uploading files and setting backup locations

This commit is contained in:
Shane Harris
2020-10-19 08:55:44 +01:00
parent ffcc256a14
commit 2ed693d245
4 changed files with 34 additions and 48 deletions
+8 -12
View File
@@ -209,18 +209,14 @@ export class HeaderComponent implements OnInit {
cancelLogcatOutput() {
this.saveLogcatPath = null;
}
selectLogcatOutput() {
this.appService.electron.remote.dialog.showOpenDialog(
{
properties: ['openDirectory'],
defaultPath: this.adbService.savePath,
},
files => {
files.forEach(filepath => {
this.saveLogcatPath = filepath;
});
}
);
async selectLogcatOutput() {
const res = await this.appService.electron.remote.dialog.showOpenDialog({
properties: ['openDirectory'],
defaultPath: this.adbService.savePath,
});
res.filePaths.forEach(filepath => {
this.saveLogcatPath = filepath;
});
}
clearLogcatFile() {
if (this.saveLogcatPath) {