Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Customization] Make quiet mode initialization async to avoid UI delay #2621

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

nieubank
Copy link
Contributor

@nieubank nieubank commented Apr 12, 2024

Summary of the pull request

Make quiet mode's view model initialization async on user control loaded to avoid delays when navigating to Windows customization L1 page.

References and relevant issues

#2591

Detailed description of the pull request / Additional comments

Loading QuietBackgroundProcessesSessionManager the first time and making OOP calls during ViewModel initialization on the UI thread can cause noticeable delays when navigating to the Windows customization page.

Validation steps performed

Navigate to Windows customization and ensure UI is responsive, even while injecting a long delay in loading QuietBackgroundProcessesSessionManager or calling IsFeaturePresent, GetIsActive or GetTimeRemaining to make sure those calls do not block the UI thread.

PR checklist

@nieubank nieubank requested a review from jsidewhite April 12, 2024 15:14
@nieubank nieubank merged commit 3c5a7e2 into main Apr 12, 2024
4 checks passed
@nieubank nieubank deleted the user/nieubank/qmdelay branch May 8, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI delays when navigating to Windows customization the first time
4 participants