App icon; language/theme follow Windows on first run; flush save on exit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 14:52:25 +01:00
parent 5a8eba836b
commit 90898d7040
16 changed files with 107 additions and 36 deletions

View File

@@ -57,9 +57,15 @@ namespace ReminderOrganizer.Services
public void Initialize(AppData appData)
{
_appData = appData;
if (!string.IsNullOrEmpty(appData.Language))
var lang = string.IsNullOrEmpty(appData.Language) ? Core.SystemPrefs.Language() : appData.Language;
if (lang == _currentLanguage)
{
SetLanguage(appData.Language);
appData.Language = lang;
StringsChanged?.Invoke(this, EventArgs.Empty);
}
else
{
SetLanguage(lang);
}
}