mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
feature: add hotkey 'F5' to reload/refresh whole repository
This commit is contained in:
parent
28554d1b04
commit
9b5e8429b9
5 changed files with 31 additions and 12 deletions
|
@ -233,17 +233,7 @@ namespace SourceGit.ViewModels
|
|||
_inProgressContext = null;
|
||||
_hasUnsolvedConflicts = false;
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
RefreshBranches();
|
||||
RefreshTags();
|
||||
RefreshCommits();
|
||||
});
|
||||
|
||||
Task.Run(RefreshSubmodules);
|
||||
Task.Run(RefreshWorkingCopyChanges);
|
||||
Task.Run(RefreshStashes);
|
||||
Task.Run(RefreshGitFlow);
|
||||
RefreshAll();
|
||||
}
|
||||
|
||||
public void Close()
|
||||
|
@ -277,6 +267,21 @@ namespace SourceGit.ViewModels
|
|||
_searchedCommits.Clear();
|
||||
}
|
||||
|
||||
public void RefreshAll()
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
RefreshBranches();
|
||||
RefreshTags();
|
||||
RefreshCommits();
|
||||
});
|
||||
|
||||
Task.Run(RefreshSubmodules);
|
||||
Task.Run(RefreshWorkingCopyChanges);
|
||||
Task.Run(RefreshStashes);
|
||||
Task.Run(RefreshGitFlow);
|
||||
}
|
||||
|
||||
public void OpenInFileManager()
|
||||
{
|
||||
Native.OS.OpenInFileManager(_fullpath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue