Skip to content
Merged
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
12 changes: 9 additions & 3 deletions windows/src/TablePro.App/Views/SettingsView.Sync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ private void ShowSyncBar(string title, string message, InfoBarSeverity severity,
SyncBar.IsOpen = true;
}

// The stored provider changes only once the core side of the choice returned, so the box goes back to it after.
private async void OnSyncProviderChanged(object sender, SelectionChangedEventArgs e)
// Disabling the box inside its own SelectionChanged fails the UI Automation Select that chose it, so it runs after.
private void OnSyncProviderChanged(object sender, SelectionChangedEventArgs e)
{
if (_loading || SyncProviderBox.SelectedItem is not ComboBoxItem { Tag: string tag })
{
Expand All @@ -257,7 +257,13 @@ private async void OnSyncProviderChanged(object sender, SelectionChangedEventArg
return;
}

_syncChoosing = true;
_syncChoosing = DispatcherQueue.TryEnqueue(
async () => await ChooseSyncProviderAsync(chosen).ConfigureAwait(true));
}

// The stored provider changes only once the core side of the choice returned, so the box goes back to it after.
private async Task ChooseSyncProviderAsync(SyncProvider chosen)
{
ShowSync();
try
{
Expand Down
Loading