This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -647,6 +647,7 @@ public void Initialize(IGitClient client)
647
647
Logger . Trace ( "Initialize" ) ;
648
648
649
649
gitClient = client ;
650
+ cacheContainer . GitUserCache . ValidateData ( ) ;
650
651
}
651
652
652
653
public void SetNameAndEmail ( string name , string email )
@@ -700,20 +701,23 @@ private void HandleUserCacheUpdatedEvent(CacheUpdateEvent cacheUpdateEvent)
700
701
701
702
private void UpdateUserAndEmail ( )
702
703
{
703
- if ( gitClient != null )
704
- {
705
- Logger . Trace ( "UpdateUserAndEmail" ) ;
704
+ Logger . Trace ( "UpdateUserAndEmail" ) ;
706
705
707
- gitClient . GetConfigUserAndEmail ( )
708
- . ThenInUI ( ( success , value ) =>
709
- {
710
- if ( success )
711
- {
712
- Name = value . Name ;
713
- Email = value . Email ;
714
- }
715
- } ) . Start ( ) ;
706
+ if ( gitClient == null )
707
+ {
708
+ Logger . Trace ( "GitClient is null" ) ;
709
+ return ;
716
710
}
711
+
712
+ gitClient . GetConfigUserAndEmail ( )
713
+ . ThenInUI ( ( success , value ) =>
714
+ {
715
+ if ( success )
716
+ {
717
+ Name = value . Name ;
718
+ Email = value . Email ;
719
+ }
720
+ } ) . Start ( ) ;
717
721
}
718
722
719
723
protected static ILogging Logger { get ; } = Logging . GetLogger < User > ( ) ;
You can’t perform that action at this time.
0 commit comments