Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions common/Environments/Styles/HorizontalCardStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@
<Setter Property="Padding" Value="20,8,15,8" />
</Style>

<Style
x:Key="CardBodyLaunchButtonStyle"
TargetType="Button">
<Setter Property="HorizontalAlignment" Value="Right" />
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="Padding" Value="34,7,34,7" />
<Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" />
<Style
x:Key="CardBodyLaunchButtonStyle"
TargetType="Button">
<Setter Property="HorizontalAlignment" Value="Right" />
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="Padding" Value="34,7,34,7" />
<Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" />
</Style>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,7 @@ public void SearchHandler(string query)

if (system is ComputeSystemViewModel computeSystemViewModel)
{
var providerName = computeSystemViewModel.ProviderDisplayName;
if (providerName != _selectedProvider)
if (_selectedProvider.Length > 0 && computeSystemViewModel.ProviderDisplayName != _selectedProvider)
{
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,12 @@ public IAsyncOperation<TaskFinishedState> Execute()
applyConfigurationOperation.ConfigurationSetStateChanged += OnApplyConfigurationOperationChanged;
applyConfigurationOperation.ActionRequired += OnActionRequired;

// We'll cancel the operation after 10 minutes. This is arbitrary for now and will need to be adjusted in the future.
// We'll cancel the operation after 30 minutes. This is arbitrary for now and will need to be adjusted in the future.
// but we'll need to give the user the ability to cancel the operation in the UI as well. This is just a safety net.
// More work is needed to give the user the ability to cancel the operation as the capability is not currently available.
// in the UI of Dev Home's Loading page.
var tokenSource = new CancellationTokenSource();
tokenSource.CancelAfter(TimeSpan.FromMinutes(10));
tokenSource.CancelAfter(TimeSpan.FromMinutes(30));

ApplyConfigurationAsyncOperation = applyConfigurationOperation.StartAsync();
var result = await ApplyConfigurationAsyncOperation.AsTask().WaitAsync(tokenSource.Token);
Expand Down