Skip to content

Commit

Permalink
fix image preview delay bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Crauzer committed Mar 28, 2023
1 parent e663624 commit f1012cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Obsidian/Shared/WadExplorer.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ private async Task PreviewImage(Image<Rgba32> image)
DotNetStreamReference jsStream = new(imageStream);

await SetCurrentPreviewType(WadFilePreviewType.Image);
await Task.Delay(25);

await this.JsRuntime.InvokeVoidAsync(
"setImage",
WadPreviewUtils.IMAGE_PREVIEW_ID,
Expand Down

0 comments on commit f1012cb

Please sign in to comment.