gfixed the opening of folders

This commit is contained in:
Shane Harris
2022-01-28 09:13:21 +01:00
parent 6fbc948189
commit 33af2d0886
2 changed files with 10 additions and 10 deletions
+9 -9
View File
@@ -197,31 +197,31 @@ export class AppService {
openFolder(folder: FolderType, packageName?: string) {
switch (folder) {
case FolderType.MAIN:
this.electron.shell.openItem(this.appData);
this.electron.shell.openPath(this.appData);
break;
case FolderType.BSABER:
this.electron.shell.openItem(this.path.join(this.appData, 'bsaber'));
this.electron.shell.openPath(this.path.join(this.appData, 'bsaber'));
break;
case FolderType.BSABER_BACKUPS:
this.electron.shell.openItem(this.path.join(this.appData, 'bsaber-backups'));
this.electron.shell.openPath(this.path.join(this.appData, 'bsaber-backups'));
break;
case FolderType.ADB:
this.electron.shell.openItem(this.path.join(this.appData, 'platform-tools'));
this.electron.shell.openPath(this.path.join(this.appData, 'platform-tools'));
break;
case FolderType.APK_BACKUPS:
this.electron.shell.openItem(this.path.join(this.appData, 'backups'));
this.electron.shell.openPath(this.path.join(this.appData, 'backups'));
break;
case FolderType.DATA_BACKUPS:
this.electron.shell.openItem(this.path.join(this.appData, 'bsaber-data-backups'));
this.electron.shell.openPath(this.path.join(this.appData, 'bsaber-data-backups'));
break;
case FolderType.QUEST_SABER_PATCH:
this.electron.shell.openItem(this.path.join(this.appData, 'saber-quest-patch', 'questsaberpatch'));
this.electron.shell.openPath(this.path.join(this.appData, 'saber-quest-patch', 'questsaberpatch'));
break;
case FolderType.APP_BACKUP:
this.electron.shell.openItem(this.path.join(this.backupPath, packageName));
this.electron.shell.openPath(this.path.join(this.backupPath, packageName));
break;
case FolderType.SONG_FOLDER:
this.electron.shell.openItem(this.path.join(this.appData, 'bsaber', packageName));
this.electron.shell.openPath(this.path.join(this.appData, 'bsaber', packageName));
break;
}
}
+1 -1
View File
@@ -338,7 +338,7 @@ export class FilesComponent implements OnInit {
});
}
openSaveLocation() {
this.appService.remote.shell.openItem(this.adbService.savePath);
this.appService.remote.shell.openPath(this.adbService.savePath);
}
async readdir(path: string) {
let dirContents: FileFolderListing[];