Skip to content

Commit c59cb58

Browse files
committed
Supress warnings
1 parent 2198775 commit c59cb58

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/Project Tracker/Project Tracker/MainWindow.xaml.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public partial class MainWindow : UWPHost.Window {
9292
private string icon;
9393

9494

95-
95+
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
9696
public MainWindow() {
9797
InitializeComponent();
9898
Startup();
@@ -2091,7 +2091,10 @@ private void UpdateButtonMouseDown(object sender, MouseButtonEventArgs e) {
20912091
File.Delete(NEXT_VERSION_INFO);
20922092
}
20932093

2094+
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
20942095
DisableUpdateButton();
2096+
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
2097+
20952098
// Download latest version information
20962099
try {
20972100
updateButton1.IsEnabled = false;

0 commit comments

Comments
 (0)