fix Glyph optional null when copying

This commit is contained in:
Jeremy 2026-01-04 16:39:33 +11:00
parent 024eeaf6bf
commit 101e5e6ff1

View file

@ -88,7 +88,9 @@ public class LastOpenedHistoryResult : Result
},
//Used for Last Opened History style reopening, currently need to be assigned at MainViewModel.cs
AsyncAction = null,
Glyph = new GlyphInfo(this.Glyph.FontFamily, this.Glyph.Glyph),
Glyph = glyphValue != null
? new GlyphInfo(this.Glyph.FontFamily, this.Glyph.Glyph)
: null,
ExecutedDateTime = this.ExecutedDateTime
// Note: Other properties are left as default — copy if needed.
};