mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
enhance: always reset _lastFetchTime when auto-fetch should not run
Signed-off-by: leo <longshuang@msn.cn> enhance: always reset `_lastFetchTime` when auto-fetch should not run Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -1779,10 +1779,7 @@ namespace SourceGit.ViewModels
|
||||
|
||||
try
|
||||
{
|
||||
if (_settings is not { EnableAutoFetch: true } || _uiStates == null)
|
||||
return;
|
||||
|
||||
if (!CanCreatePopup())
|
||||
if (_settings is not { EnableAutoFetch: true } || !CanCreatePopup())
|
||||
{
|
||||
_lastFetchTime = DateTime.Now;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user