Revert IsCompleted checks

Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
Danilo Del Busso 2023-05-02 09:00:54 +01:00
parent 113a427e6a
commit f16b0fed35
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -594,7 +594,7 @@ namespace XenAdmin.Controls.Wlb
/// </summary>
protected void OptRecRetrieveAction_Completed(ActionBase sender)
{
if (!(sender is WlbRetrieveRecommendationsAction asyncAction) || !action.IsCompleted)
if (!(sender is WlbRetrieveRecommendationsAction asyncAction))
return;
asyncAction.Completed -= OptRecRetrieveAction_Completed;

View File

@ -208,7 +208,7 @@ namespace XenAdmin.Dialogs
private void getDataSourcesAction_Completed(ActionBase sender)
{
if (!(sender is GetDataSourcesAction action) || !action.Succeeded)
if (!(sender is GetDataSourcesAction action))
return;
Program.Invoke(this, () =>

View File

@ -416,7 +416,7 @@ namespace XenAdmin.TabPages
private void SaveGraphs(ActionBase sender)
{
if (!(sender is GetDataSourcesAction action) || !action.Succeeded)
if (!(sender is GetDataSourcesAction action))
return;
Program.Invoke(Program.MainWindow, () =>