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 @@ -607,6 +607,7 @@ public void Initialize(IGitClient client)
607
607
Logger . Trace ( "Initialize" ) ;
608
608
609
609
gitClient = client ;
610
+ cacheContainer . GitUserCache . ValidateData ( ) ;
610
611
}
611
612
612
613
public void SetNameAndEmail ( string name , string email )
@@ -660,20 +661,23 @@ private void HandleUserCacheUpdatedEvent(CacheUpdateEvent cacheUpdateEvent)
660
661
661
662
private void UpdateUserAndEmail ( )
662
663
{
663
- if ( gitClient != null )
664
- {
665
- Logger . Trace ( "UpdateUserAndEmail" ) ;
664
+ Logger . Trace ( "UpdateUserAndEmail" ) ;
666
665
667
- gitClient . GetConfigUserAndEmail ( )
668
- . ThenInUI ( ( success , value ) =>
669
- {
670
- if ( success )
671
- {
672
- Name = value . Name ;
673
- Email = value . Email ;
674
- }
675
- } ) . Start ( ) ;
666
+ if ( gitClient == null )
667
+ {
668
+ Logger . Trace ( "GitClient is null" ) ;
669
+ return ;
676
670
}
671
+
672
+ gitClient . GetConfigUserAndEmail ( )
673
+ . ThenInUI ( ( success , value ) =>
674
+ {
675
+ if ( success )
676
+ {
677
+ Name = value . Name ;
678
+ Email = value . Email ;
679
+ }
680
+ } ) . Start ( ) ;
677
681
}
678
682
679
683
protected static ILogging Logger { get ; } = Logging . GetLogger < User > ( ) ;
You can’t perform that action at this time.
0 commit comments