fix: notifications not working on first run

This commit is contained in:
Zamitto
2025-05-17 20:32:24 -03:00
parent 276c098fbc
commit a5aabe0ad7
8 changed files with 36 additions and 16 deletions

View File

@@ -135,7 +135,6 @@ export function AchievementNotification() {
useEffect(() => {
const loadAndApplyTheme = async () => {
const activeTheme = await window.electron.getActiveCustomTheme();
console.log("activeTheme", activeTheme);
if (activeTheme?.code) {
injectCustomCss(activeTheme.code);
}

View File

@@ -38,7 +38,7 @@ export function SettingsGeneral() {
downloadNotificationsEnabled: false,
repackUpdatesNotificationsEnabled: false,
friendRequestNotificationsEnabled: false,
achievementNotificationsEnabled: false,
achievementNotificationsEnabled: true,
achievementCustomNotificationsEnabled: true,
achievementCustomNotificationPosition:
"top-left" as AchievementCustomNotificationPosition,
@@ -104,7 +104,7 @@ export function SettingsGeneral() {
repackUpdatesNotificationsEnabled:
userPreferences.repackUpdatesNotificationsEnabled ?? false,
achievementNotificationsEnabled:
userPreferences.achievementNotificationsEnabled ?? false,
userPreferences.achievementNotificationsEnabled ?? true,
achievementCustomNotificationsEnabled:
userPreferences.achievementCustomNotificationsEnabled ?? true,
achievementCustomNotificationPosition: