Skip to content

Commit 7e8d4e0

Browse files
committed
enhance: always reset _lastFetchTime when auto-fetch should not run
Signed-off-by: leo <longshuang@msn.cn>
1 parent bfcc505 commit 7e8d4e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ViewModels/Repository.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,8 +1779,11 @@ private async Task AutoFetchOnUIThread()
17791779

17801780
try
17811781
{
1782-
if (_settings is not { EnableAutoFetch: true } || _uiStates == null)
1782+
if (_settings is not { EnableAutoFetch: true } || !CanCreatePopup())
1783+
{
1784+
_lastFetchTime = DateTime.Now;
17831785
return;
1786+
}
17841787

17851788
if (!CanCreatePopup())
17861789
{

0 commit comments

Comments
 (0)