Skip to content

Commit

Permalink
Revert "Fixed pinning UI"
Browse files Browse the repository at this point in the history
This reverts commit 8fc9908.
  • Loading branch information
huzaifa-msft committed Sep 30, 2024
1 parent 55840cf commit dc7a22e
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,12 @@ private async Task InitializeOperationDataAsync()
// Only show dot operations when there are items in the list.
ShouldShowDotOperations = DotOperations.Count > 0;
// Only show Launch split button with operations when there are items in the list.
ShouldShowSplitButton = LaunchOperations.Count > 0;
});
});

// Only show Launch split button with operations when there are items in the list.
ShouldShowSplitButton = LaunchOperations.Count > 0;
SetPropertiesAsync();
}
finally
Expand All @@ -184,7 +185,7 @@ private async Task InitializeOperationDataAsync()
}
}

private async Task RefreshOperationDataAsync(ComputeSystemState newState)
private async Task RefreshOperationDataAsync()
{
ComputeSystem.ResetSupportedOperations();
var supportedOperations = ComputeSystem.SupportedOperations?.Value ?? ComputeSystemOperations.None;
Expand All @@ -200,12 +201,7 @@ private async Task RefreshOperationDataAsync(ComputeSystemState newState)
}

ComputeSystem.ResetComputeSystemProperties();
ShouldShowDotOperations = false;

if (newState != ComputeSystemState.Saving)
{
await InitializeOperationDataAsync();
}
await InitializeOperationDataAsync();
}

private async Task InitializeStateAsync()
Expand Down Expand Up @@ -250,7 +246,7 @@ public void OnComputeSystemStateChanged(ComputeSystem sender, ComputeSystemState
// So we need to rebuild the dot and launch operations that appear in the UI based on the current
// supported operations of the compute system. InitializeOperationDataAsync will take care of this for us, by using
// the DataExtractor helper.
await RefreshOperationDataAsync(newState);
await RefreshOperationDataAsync();
}
});
}
Expand Down

0 comments on commit dc7a22e

Please sign in to comment.