icon.ico is a WPF <Resource> embedded in the assembly, but the code loaded it from the filesystem (AppContext.BaseDirectory) where no copy exists -> FileNotFoundException, silently swallowed by the catch -> blank tray icon. Load via pack:// resource stream instead. Also log the failure to Debug output instead of swallowing it silently. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| App.xaml | ||
| App.xaml.cs | ||
| AssemblyInfo.cs | ||
| JournalBot.Tray.csproj | ||
| MainWindow.xaml | ||
| MainWindow.xaml.cs | ||
| appsettings.json | ||
| icon.ico | ||