Skip to content

Commit

Permalink
Update OtherViewModel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JusterZhu committed Feb 24, 2024
1 parent 11b0fe3 commit c347176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WPF/GeneralUpdate.Packet/ViewModels/OtherViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private async Task GetFileMD5Callback()
var openFileDialog = new OpenFileDialog();
openFileDialog.InitialDirectory = @"D:\";
openFileDialog.Filter = "All files (*.*)|*.*";
if (!openFileDialog.ShowDialog().Value)
if (openFileDialog.ShowDialog() == false)
{
await ShowMessage("Pick options", "No results were selected !");
return;
Expand Down Expand Up @@ -70,7 +70,7 @@ private async Task BuildJsonCallback()
var openFileDialog = new OpenFileDialog();
openFileDialog.InitialDirectory = @"D:\";
openFileDialog.Filter = "All files (*.*)|*.*";
if (!openFileDialog.ShowDialog().Value)
if (openFileDialog.ShowDialog() == false)
{
await ShowMessage("Pick options", "No results were selected !");
return;
Expand Down

0 comments on commit c347176

Please sign in to comment.