Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ViewModels/Preferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public bool EnableAutoFetch
{
get;
set;
} = false;
} = true;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not want to change this option. Not all users like this feature because when auto-fetch happends, it may interfere with the work that the user is carrying out.


public int AutoFetchInterval
{
Expand Down
2 changes: 1 addition & 1 deletion src/ViewModels/Repository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ public void Open()
_workingCopy = new WorkingCopy(this) { CommitMessage = _uiStates.LastCommitMessage };
_stashesPage = new StashesPage(this);
_selectedViewIndex = Preferences.Instance.ShowLocalChangesByDefault ? 1 : 0;
_lastFetchTime = DateTime.Now;
_lastFetchTime = DateTime.Now.AddMinutes(-Preferences.Instance.AutoFetchInterval).AddSeconds(60); // first auto-fetch 60s after open, then every interval
_autoFetchTimer = new Timer(AutoFetchByTimer, null, 5000, 5000);
RefreshAll();
}
Expand Down