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

@@ -21,6 +21,8 @@ namespace ReminderOrganizer
services.AddSingleton<IDataService>(_ =>
{
var ds = new DataService();
if (Environment.GetEnvironmentVariable("REMINDER_ORGANIZER_DATA") is { Length: > 0 })
return ds; // isolated test/screenshot run: never pull in real data
// Older versions stored tasks.json next to the exe (or in the single-file extract dir).
ds.MigrateFrom(System.IO.Path.GetDirectoryName(Environment.ProcessPath));
ds.MigrateFrom(AppContext.BaseDirectory);