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:
leo
2026-02-06 19:16:38 +08:00
parent bfcc505f5a
commit a7b39bfa4a

View File

@@ -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;