Skip to content

Commit a7b39bf

Browse files
committed
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>
1 parent bfcc505 commit a7b39bf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ViewModels/Repository.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,10 +1779,7 @@ private async Task AutoFetchOnUIThread()
17791779

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

0 commit comments

Comments
 (0)