Skip to content

Commit

Permalink
resolve some compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Dec 3, 2023
1 parent 67933cb commit f8e2449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Starward.Core/Launcher/LauncherPost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class LauncherPost
public string PostId { get; set; }

[JsonPropertyName("type")]
[JsonConverter(typeof(JsonStringEnumConverter))]
[JsonConverter(typeof(JsonStringEnumConverter<PostType>))]
public PostType Type { get; set; }

[JsonPropertyName("tittle")]
Expand Down
2 changes: 1 addition & 1 deletion src/Starward/Pages/ImageViewPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ private async Task OpenFileAsync()
private void Close()
{
MainWindow.Current?.CloseOverlayPage();
MainWindow.Current.AppWindow.SetPresenter(AppWindowPresenterKind.Overlapped);
MainWindow.Current?.AppWindow?.SetPresenter(AppWindowPresenterKind.Overlapped);
}


Expand Down

0 comments on commit f8e2449

Please sign in to comment.