fixed more old buttons, added some feedback changes too

This commit is contained in:
Shane Harris
2022-08-01 14:10:45 +01:00
parent 2b3efca3d2
commit 008d958976
18 changed files with 394 additions and 393 deletions
+10 -1
View File
@@ -179,7 +179,16 @@ export class HeaderComponent implements OnInit {
saveFavourites(type: string) {
localStorage.setItem(type, JSON.stringify(this.favourites[type]));
}
async setLocalIcon(fav: FavouriteItem) {
const res = await this.appService.remote.dialog.showOpenDialog({
filters: [{ name: 'Pictures', extensions: ['png', 'jpg', 'jpeg'] }],
properties: ['openFile'],
defaultPath: this.appService.backupPath,
});
if (res && res.filePaths && res.filePaths.length === 1) {
fav.icon = res.filePaths[0];
}
}
ngOnInit() {}
runAdbCommand() {
return this.adbService.runAdbCommand(this.adbCommandToRun).catch(e => {