mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add null-safe comparison for glyph
This commit is contained in:
parent
4ddb164bbd
commit
657e6ae7d3
1 changed files with 2 additions and 2 deletions
|
|
@ -77,8 +77,8 @@ namespace Flow.Launcher.Storage
|
||||||
if (existingHistoryItem.IcoPath != result.IcoPath)
|
if (existingHistoryItem.IcoPath != result.IcoPath)
|
||||||
existingHistoryItem.IcoPath = result.IcoPath;
|
existingHistoryItem.IcoPath = result.IcoPath;
|
||||||
|
|
||||||
if (existingHistoryItem.Glyph.Glyph != result.Glyph.Glyph
|
if (existingHistoryItem.Glyph?.Glyph != result.Glyph?.Glyph
|
||||||
|| existingHistoryItem.Glyph.FontFamily != result.Glyph.FontFamily)
|
|| existingHistoryItem.Glyph?.FontFamily != result.Glyph?.FontFamily)
|
||||||
existingHistoryItem.Glyph = result.Glyph;
|
existingHistoryItem.Glyph = result.Glyph;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue