mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
Fix context menu conflicts with commit info popup panel
This commit is contained in:
@@ -84,7 +84,9 @@ namespace SourceGit.UI {
|
||||
p.Background = BG[i % 2];
|
||||
p.Foreground = FindResource("Brush.FG") as SolidColorBrush;
|
||||
p.FontStyle = FontStyles.Normal;
|
||||
p.MouseRightButtonDown += (sender, ev) => {
|
||||
p.ContextMenuOpening += (sender, ev) => {
|
||||
if (!content.Selection.IsEmpty) return;
|
||||
|
||||
Hyperlink link = new Hyperlink(new Run(frag.CommitSHA));
|
||||
link.ToolTip = "CLICK TO GO";
|
||||
link.Click += (o, e) => {
|
||||
@@ -105,6 +107,7 @@ namespace SourceGit.UI {
|
||||
authorName.Content = frag.Author;
|
||||
authorTime.Content = frag.Time;
|
||||
popup.IsOpen = true;
|
||||
ev.Handled = true;
|
||||
};
|
||||
|
||||
var formatter = new FormattedText(
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:source="clr-namespace:SourceGit"
|
||||
xmlns:local="clr-namespace:SourceGit.UI"
|
||||
xmlns:git="clr-namespace:SourceGit.Git"
|
||||
xmlns:converters="clr-namespace:SourceGit.Converters"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800"
|
||||
|
||||
Reference in New Issue
Block a user