diff --git a/src/main/index.ts b/src/main/index.ts index be9e918d..e33a3d21 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -82,7 +82,7 @@ const checkForNewRepacks = async () => { repackRepository.count().then((count) => { const total = count - stateManager.getValue("repacks").length; - if (total > 0 && userPreferences.repackUpdatesNotificationsEnabled) { + if (total > 0 && userPreferences?.repackUpdatesNotificationsEnabled) { new Notification({ title: t("repack_list_updated", { ns: "notifications", diff --git a/src/renderer/pages/game-details/hero-panel.tsx b/src/renderer/pages/game-details/hero-panel.tsx index 95273a30..b6f8e5a3 100644 --- a/src/renderer/pages/game-details/hero-panel.tsx +++ b/src/renderer/pages/game-details/hero-panel.tsx @@ -104,9 +104,7 @@ export function HeroPanel({ window.electron .showOpenDialog({ properties: ["openFile"], - filters: [ - { name: "Game executable (.exe)", extensions: ["exe", "app"] }, - ], + filters: [{ name: "Game executable (.exe)", extensions: ["exe"] }], }) .then(({ filePaths }) => { if (filePaths && filePaths.length > 0) {