mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
Fix context menu conflicts with commit info popup panel
This commit is contained in:
parent
b06fe3d477
commit
a30ac86617
2 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue