ux: context menu separator

This commit is contained in:
leo 2025-01-13 14:47:18 +08:00
parent 88e64a4f31
commit b10e084c54
No known key found for this signature in database

View file

@ -1,7 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Runtime.Intrinsics.Arm;
using System.Text; using System.Text;
using System.Text.Json; using System.Text.Json;
using System.Threading; using System.Threading;
@ -1820,7 +1819,6 @@ namespace SourceGit.ViewModels
DataContext = new BranchCompare(_fullpath, branch, _currentBranch) DataContext = new BranchCompare(_fullpath, branch, _currentBranch)
}); });
}; };
menu.Items.Add(new MenuItem() { Header = "-" });
menu.Items.Add(compareWithHead); menu.Items.Add(compareWithHead);
if (_localChangesCount > 0) if (_localChangesCount > 0)
@ -1841,6 +1839,7 @@ namespace SourceGit.ViewModels
}; };
menu.Items.Add(compareWithWorktree); menu.Items.Add(compareWithWorktree);
} }
menu.Items.Add(new MenuItem() { Header = "-" });
var delete = new MenuItem(); var delete = new MenuItem();
delete.Header = new Views.NameHighlightedTextBlock("BranchCM.Delete", name); delete.Header = new Views.NameHighlightedTextBlock("BranchCM.Delete", name);