Skip to content

Commit

Permalink
Added try/catch when doing an update. This may cause an exception if …
Browse files Browse the repository at this point in the history
…the window isn't visible yet, no biggie.
  • Loading branch information
vchelaru committed Nov 27, 2023
1 parent b9b77b9 commit 0665ad5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion FRBDK/Glue/OfficialPlugins/FrbUpdater/UpdateWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,14 @@ private async void DoDownloadAndSaveFile(FileData fileData, Uri url, HttpWebResp
};

lblSpeed.Invoke(updateDelegate);
try
{
lblSpeed.Invoke(updateDelegate);
}
catch(InvalidOperationException)
{
// do nothing, at times this can happen before the view is visible. It's okay, just carry on...
}


}
Expand Down

0 comments on commit 0665ad5

Please sign in to comment.