Skip to content

Commit

Permalink
Add #pragma warning disable 4014
Browse files Browse the repository at this point in the history
  • Loading branch information
diluculo committed Nov 2, 2021
1 parent c3a7b11 commit 3dc9fc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Gemini/Framework/PersistedDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ public override Task<bool> CanCloseAsync(CancellationToken cancellationToken)
if (dialog.ShowDialog() == true)
{
// Save file.
#pragma warning disable 4014
Save(dialog.FileName);

#pragma warning restore 4014
// Add to recent files. Temporally, commented out.
//IShell _shell = IoC.Get<IShell>();
//_shell.RecentFiles.Update(dialog.FileName);
Expand All @@ -95,7 +96,9 @@ public override Task<bool> CanCloseAsync(CancellationToken cancellationToken)
else
{
// Save file.
#pragma warning disable 4014
Save(FilePath);
#pragma warning restore 4014
}
}
else if (result == MessageBoxResult.Cancel)
Expand Down

0 comments on commit 3dc9fc6

Please sign in to comment.