add null-safe comparison for glyph

This commit is contained in:
Jeremy 2026-01-20 22:55:04 +11:00
parent 4ddb164bbd
commit 657e6ae7d3

View file

@ -77,8 +77,8 @@ namespace Flow.Launcher.Storage
if (existingHistoryItem.IcoPath != result.IcoPath)
existingHistoryItem.IcoPath = result.IcoPath;
if (existingHistoryItem.Glyph.Glyph != result.Glyph.Glyph
|| existingHistoryItem.Glyph.FontFamily != result.Glyph.FontFamily)
if (existingHistoryItem.Glyph?.Glyph != result.Glyph?.Glyph
|| existingHistoryItem.Glyph?.FontFamily != result.Glyph?.FontFamily)
existingHistoryItem.Glyph = result.Glyph;
}
else