refactor: using command binding instead of routed event binding

This commit is contained in:
leo 2024-06-04 13:10:48 +08:00
parent d0edc09b2e
commit 863f88133c
2 changed files with 7 additions and 12 deletions

View file

@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Avalonia;
using Avalonia.Controls;
@ -305,14 +303,6 @@ namespace SourceGit.Views
e.Handled = true;
}
private void UpdateSubmodules(object sender, RoutedEventArgs e)
{
if (DataContext is ViewModels.Repository repo)
repo.UpdateSubmodules();
e.Handled = true;
}
private void CollectBranchesFromNode(List<Models.Branch> outs, ViewModels.BranchTreeNode node)
{