fix: bad condition to check if auto-fetch is enabled (#2257)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-04-13 15:17:43 +08:00
parent c1a5e986bf
commit d6f45cca7d

View File

@@ -1887,7 +1887,7 @@ namespace SourceGit.ViewModels
try
{
if (Preferences.Instance.EnableAutoFetch || !CanCreatePopup())
if (!Preferences.Instance.EnableAutoFetch || !CanCreatePopup())
{
_lastFetchTime = DateTime.Now;
return;