Skip to content

Fix desktop catalog dialog freezing (list not displayed, selection not switching)#179

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-desktop-dialog-freezing
Draft

Fix desktop catalog dialog freezing (list not displayed, selection not switching)#179
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-desktop-dialog-freezing

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 20, 2026

DesktopCatalogViewModel.Setup() ran its post-await continuation on a thread-pool (MTA) thread due to ConfigureAwait(false). All subsequent operations — GetWallpaperPath, GetCurrent (COM calls requiring STA), and SelectedDesktop assignment (triggers SwitchPopupOverlay, UI ops) — were executing on the wrong thread, causing COM marshaling deadlocks against the busy UI thread.

Change

Remove .ConfigureAwait(false) from configStore.Load() in Setup() so the continuation resumes on the captured STA/UI thread. Config I/O stays async inside ConfigStore.Load().

// Before
var config = await this.configStore.Load().ConfigureAwait(false);

// After
var config = await this.configStore.Load();
Original prompt

This section details on the original issue you should resolve

<issue_title>デスクトップ一覧ダイアログが固まる</issue_title>
<issue_description>- 一覧が表示されない

  • 一覧の選択が切り替わらない</issue_description>

Comments on the Issue (you are @copilot in this section)

@Freeesia 一覧の取得を非同期化する

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix desktop list dialog freezing issue Fix desktop catalog dialog freezing (list not displayed, selection not switching) Mar 20, 2026
Copilot AI requested a review from Freeesia March 20, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

デスクトップ一覧ダイアログが固まる

2 participants