updated shell.openItem to shell.openPath
This commit is contained in:
@@ -197,31 +197,31 @@ export class AppService {
|
|||||||
openFolder(folder: FolderType, packageName?: string) {
|
openFolder(folder: FolderType, packageName?: string) {
|
||||||
switch (folder) {
|
switch (folder) {
|
||||||
case FolderType.MAIN:
|
case FolderType.MAIN:
|
||||||
this.electron.shell.openItem(this.appData);
|
this.electron.shell.openPath(this.appData);
|
||||||
break;
|
break;
|
||||||
case FolderType.BSABER:
|
case FolderType.BSABER:
|
||||||
this.electron.shell.openItem(this.path.join(this.appData, 'bsaber'));
|
this.electron.shell.openPath(this.path.join(this.appData, 'bsaber'));
|
||||||
break;
|
break;
|
||||||
case FolderType.BSABER_BACKUPS:
|
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;
|
break;
|
||||||
case FolderType.ADB:
|
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;
|
break;
|
||||||
case FolderType.APK_BACKUPS:
|
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;
|
break;
|
||||||
case FolderType.DATA_BACKUPS:
|
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;
|
break;
|
||||||
case FolderType.QUEST_SABER_PATCH:
|
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;
|
break;
|
||||||
case FolderType.APP_BACKUP:
|
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;
|
break;
|
||||||
case FolderType.SONG_FOLDER:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -323,7 +323,7 @@ export class FilesComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
openSaveLocation() {
|
openSaveLocation() {
|
||||||
this.appService.electron.remote.shell.openItem(this.adbService.savePath);
|
this.appService.electron.remote.shell.openPath(this.adbService.savePath);
|
||||||
}
|
}
|
||||||
async readdir(path: string) {
|
async readdir(path: string) {
|
||||||
let dirContents: FileFolderListing[];
|
let dirContents: FileFolderListing[];
|
||||||
|
|||||||
Reference in New Issue
Block a user