Execute UserChanged synchronously

- Ensures that ProfileManager is at correct state after callers
  invoke ChangeCloudSyncStatus - otherwise RunOnIdle invokes late
  and ProfileManager.Instance will remain on previous user for
  and indeterminate amount of time
This commit is contained in:
John Lewin 2018-11-07 09:08:15 -08:00
parent 37a119aaa7
commit 7b578ac098
2 changed files with 8 additions and 4 deletions

View file

@ -1870,7 +1870,7 @@ namespace MatterHackers.MatterControl
AuthenticationData.Instance.LastSessionUsername = AuthenticationData.Instance.ActiveSessionUsername;
}
UiThread.RunOnIdle(this.UserChanged);
this.UserChanged();
}
// Called after every startup and at the completion of every authentication change