mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
enhance: disable blame on submodules
This commit is contained in:
parent
0da30b6b89
commit
de1a4d14e8
2 changed files with 1 additions and 2 deletions
|
@ -319,6 +319,7 @@ namespace SourceGit.ViewModels
|
||||||
var blame = new MenuItem();
|
var blame = new MenuItem();
|
||||||
blame.Header = App.Text("Blame");
|
blame.Header = App.Text("Blame");
|
||||||
blame.Icon = App.CreateMenuIcon("Icons.Blame");
|
blame.Icon = App.CreateMenuIcon("Icons.Blame");
|
||||||
|
blame.IsEnabled = file.Type == Models.ObjectType.Blob;
|
||||||
blame.Click += (o, ev) =>
|
blame.Click += (o, ev) =>
|
||||||
{
|
{
|
||||||
var window = new Views.Blame() { DataContext = new Blame(_repo, file.Path, _commit.SHA) };
|
var window = new Views.Blame() { DataContext = new Blame(_repo, file.Path, _commit.SHA) };
|
||||||
|
|
|
@ -9,8 +9,6 @@ using Avalonia.Controls.Primitives;
|
||||||
using Avalonia.Controls.Templates;
|
using Avalonia.Controls.Templates;
|
||||||
using Avalonia.Interactivity;
|
using Avalonia.Interactivity;
|
||||||
using Avalonia.Media;
|
using Avalonia.Media;
|
||||||
using Avalonia.Media.Imaging;
|
|
||||||
using Avalonia.Styling;
|
|
||||||
|
|
||||||
using AvaloniaEdit;
|
using AvaloniaEdit;
|
||||||
using AvaloniaEdit.Document;
|
using AvaloniaEdit.Document;
|
||||||
|
|
Loading…
Reference in a new issue