mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
fix: fixing null user preferences for download notifications
This commit is contained in:
parent
a7da2108ec
commit
2893ff559f
@ -82,7 +82,7 @@ const checkForNewRepacks = async () => {
|
|||||||
repackRepository.count().then((count) => {
|
repackRepository.count().then((count) => {
|
||||||
const total = count - stateManager.getValue("repacks").length;
|
const total = count - stateManager.getValue("repacks").length;
|
||||||
|
|
||||||
if (total > 0 && userPreferences.repackUpdatesNotificationsEnabled) {
|
if (total > 0 && userPreferences?.repackUpdatesNotificationsEnabled) {
|
||||||
new Notification({
|
new Notification({
|
||||||
title: t("repack_list_updated", {
|
title: t("repack_list_updated", {
|
||||||
ns: "notifications",
|
ns: "notifications",
|
||||||
|
@ -104,9 +104,7 @@ export function HeroPanel({
|
|||||||
window.electron
|
window.electron
|
||||||
.showOpenDialog({
|
.showOpenDialog({
|
||||||
properties: ["openFile"],
|
properties: ["openFile"],
|
||||||
filters: [
|
filters: [{ name: "Game executable (.exe)", extensions: ["exe"] }],
|
||||||
{ name: "Game executable (.exe)", extensions: ["exe", "app"] },
|
|
||||||
],
|
|
||||||
})
|
})
|
||||||
.then(({ filePaths }) => {
|
.then(({ filePaths }) => {
|
||||||
if (filePaths && filePaths.length > 0) {
|
if (filePaths && filePaths.length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user