From adbedb0e1fd389bd010547c08e4bd3966c8e3bcb Mon Sep 17 00:00:00 2001 From: Shane Harris Date: Tue, 10 Aug 2021 14:53:57 +0200 Subject: [PATCH] updated shell.openItem to shell.openPath --- desktop-app/src/app/app.service.ts | 18 +++++++++--------- desktop-app/src/app/files/files.component.ts | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/desktop-app/src/app/app.service.ts b/desktop-app/src/app/app.service.ts index b239a56..0f70353 100644 --- a/desktop-app/src/app/app.service.ts +++ b/desktop-app/src/app/app.service.ts @@ -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; } } diff --git a/desktop-app/src/app/files/files.component.ts b/desktop-app/src/app/files/files.component.ts index 2555587..4cded8e 100644 --- a/desktop-app/src/app/files/files.component.ts +++ b/desktop-app/src/app/files/files.component.ts @@ -323,7 +323,7 @@ export class FilesComponent implements OnInit { }); } openSaveLocation() { - this.appService.electron.remote.shell.openItem(this.adbService.savePath); + this.appService.electron.remote.shell.openPath(this.adbService.savePath); } async readdir(path: string) { let dirContents: FileFolderListing[];