fix crash: GetPolicyFromPathForUser (#1826)

This commit is contained in:
Tian L 2022-05-09 08:33:09 +08:00 committed by GitHub
parent 4f6838fbd5
commit d070cbad64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 6 deletions

View file

@ -85,7 +85,8 @@ namespace CalculatorApp
// If the app got pre-launch activated, then save that state in a flag
m_preLaunched = true;
}
NavCategoryStates.SetCurrentUser(args.User);
NavCategoryStates.SetCurrentUser(args.User.NonRoamableId);
// It takes time to check GraphingMode at the 1st time. So, do it in a background thread
Task.Run(() => NavCategoryStates.IsViewModeEnabled(ViewMode.Graphing));