|
@@ -113,10 +113,8 @@ namespace PRSDesktop
|
|
{
|
|
{
|
|
var icon = new Client<Document>()
|
|
var icon = new Client<Document>()
|
|
.Load(new Filter<Document>(x => x.ID).IsEqualTo(postSettings.Thumbnail.ID)).FirstOrDefault();
|
|
.Load(new Filter<Document>(x => x.ID).IsEqualTo(postSettings.Thumbnail.ID)).FirstOrDefault();
|
|
- if (icon is not null)
|
|
|
|
- {
|
|
|
|
|
|
+ if (icon?.Data?.Any() == true)
|
|
image = new ImageConverter().ConvertFrom(icon.Data) as Bitmap;
|
|
image = new ImageConverter().ConvertFrom(icon.Data) as Bitmap;
|
|
- }
|
|
|
|
}
|
|
}
|
|
host.CreatePanelAction(new PanelAction
|
|
host.CreatePanelAction(new PanelAction
|
|
{
|
|
{
|