mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
style<Dashboard>: remove refresh button from toolbar, use F5 to reload repository's data instead
This commit is contained in:
parent
4b9923b84c
commit
6311fa081e
3 changed files with 11 additions and 17 deletions
|
@ -96,6 +96,15 @@ namespace SourceGit.Views.Widgets {
|
|||
#endregion
|
||||
|
||||
#region DATA
|
||||
public void Refresh() {
|
||||
UpdateBraches();
|
||||
UpdateWorkingCopy();
|
||||
UpdateStashes();
|
||||
UpdateTags();
|
||||
UpdateSubmodules();
|
||||
UpdateSubTrees();
|
||||
}
|
||||
|
||||
private void NavigateTo(string commitId) {
|
||||
workspace.SelectedIndex = 0;
|
||||
(pages.Get("histories") as Histories).NavigateTo(commitId);
|
||||
|
@ -289,15 +298,6 @@ namespace SourceGit.Views.Widgets {
|
|||
e.Handled = true;
|
||||
}
|
||||
|
||||
public void Refresh(object sender, RoutedEventArgs e) {
|
||||
UpdateBraches();
|
||||
UpdateWorkingCopy();
|
||||
UpdateStashes();
|
||||
UpdateTags();
|
||||
UpdateSubmodules();
|
||||
UpdateSubTrees();
|
||||
}
|
||||
|
||||
private void OpenFetch(object sender, RoutedEventArgs e) {
|
||||
if (repo.Remotes.Count == 0) {
|
||||
Models.Exception.Raise("No remotes added to this repository!!!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue