Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Saschl committed Oct 14, 2024
1 parent 38804be commit c54a046
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/components/AddonSection/MyInstall/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ export const MyInstall: FC<MyInstallProps> = ({ addon }) => {
return Directories.inInstallPackage(addon, def.location.path);
case 'packageCache':
return Directories.inPackageCache(addon, def.location.path);
case 'documents':
case 'documents': {
const documents = Directories.inDocumentsFolder(def.location.path);
if (fs.existsSync(documents)) {
return documents;
}
// fallback for simbridge installations prior to 0.6
// remove afer transition period
return Directories.inInstallPackage(addon, 'resources');
}
}
};

Expand Down

0 comments on commit c54a046

Please sign in to comment.