Bring Show Folder to front

This commit is contained in:
asotoudeh18
2020-11-04 16:44:21 -05:00
parent 806c27db4c
commit e29fd2bfa3

View File

@@ -341,7 +341,11 @@ export class MyAddonsComponent implements OnInit, OnDestroy {
public onShowfolder(addon: Addon) {
try {
const addonPath = this.addonService.getFullInstallPath(addon);
this.electronService.shell.openExternal(addonPath);
this.electronService.shell.openExternal(
addonPath,
//open issue on Electron causing activate false to set to foreground instead of background
this.electronService.isMac ? { activate: true } : { activate: false }
);
} catch (err) {
console.error(err);
}