mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-28 23:54:59 +00:00
feature<Cleanup>: add toolbar button to run git gc
and git lfs prune
This commit is contained in:
parent
bc404de937
commit
b04c94ccc1
9 changed files with 103 additions and 1 deletions
|
@ -122,6 +122,13 @@
|
|||
ToolTip="{DynamicResource Text.Dashboard.Refresh}"
|
||||
Click="TriggerRefresh"/>
|
||||
|
||||
<controls:IconButton
|
||||
Margin="8,0"
|
||||
Padding="0,8"
|
||||
Icon="{DynamicResource Icon.Clean}"
|
||||
ToolTip="{DynamicResource Text.Dashboard.Clean}"
|
||||
Click="OpenCleanup"/>
|
||||
|
||||
<controls:IconButton
|
||||
Margin="8,0"
|
||||
Padding="0,8"
|
||||
|
|
|
@ -413,6 +413,11 @@ namespace SourceGit.Views.Widgets {
|
|||
dialog.ShowDialog();
|
||||
}
|
||||
|
||||
private void OpenCleanup(object sender, RoutedEventArgs e) {
|
||||
new Popups.Cleanup(repo.Path).ShowAndStart();
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void OpenConfigure(object sender, RoutedEventArgs e) {
|
||||
new Popups.Configure(repo.Path).Show();
|
||||
e.Handled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue