diff --git a/src/Views/Blame.axaml.cs b/src/Views/Blame.axaml.cs index 1abd3ad1..164b89de 100644 --- a/src/Views/Blame.axaml.cs +++ b/src/Views/Blame.axaml.cs @@ -429,9 +429,9 @@ namespace SourceGit.Views } public partial class Blame : ChromelessWindow - { + { public Blame() - { + { InitializeComponent(); } diff --git a/src/Views/BranchCompare.axaml.cs b/src/Views/BranchCompare.axaml.cs index b368916d..90ec1af5 100644 --- a/src/Views/BranchCompare.axaml.cs +++ b/src/Views/BranchCompare.axaml.cs @@ -4,9 +4,9 @@ using Avalonia.Input; namespace SourceGit.Views { public partial class BranchCompare : ChromelessWindow - { + { public BranchCompare() - { + { InitializeComponent(); } diff --git a/src/Views/FileHistories.axaml.cs b/src/Views/FileHistories.axaml.cs index c7a01e2f..9d74892b 100644 --- a/src/Views/FileHistories.axaml.cs +++ b/src/Views/FileHistories.axaml.cs @@ -1,6 +1,3 @@ -using System; - -using Avalonia; using Avalonia.Controls; using Avalonia.Input; using Avalonia.Interactivity; @@ -9,30 +6,10 @@ namespace SourceGit.Views { public partial class FileHistories : ChromelessWindow { - public static readonly StyledProperty HasLeftCaptionButtonProperty = - AvaloniaProperty.Register(nameof(HasLeftCaptionButton)); - - public bool HasLeftCaptionButton - { - get => GetValue(HasLeftCaptionButtonProperty); - set => SetValue(HasLeftCaptionButtonProperty, value); - } - public FileHistories() { - if (OperatingSystem.IsMacOS()) - HasLeftCaptionButton = true; - InitializeComponent(); } - - protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change) - { - base.OnPropertyChanged(change); - - if (change.Property == WindowStateProperty) - HasLeftCaptionButton = WindowState != WindowState.FullScreen; - } private void OnPressCommitSHA(object sender, PointerPressedEventArgs e) { diff --git a/src/Views/Launcher.axaml.cs b/src/Views/Launcher.axaml.cs index 951e71f5..f2fb38b8 100644 --- a/src/Views/Launcher.axaml.cs +++ b/src/Views/Launcher.axaml.cs @@ -19,7 +19,7 @@ namespace SourceGit.Views get => GetValue(CaptionHeightProperty); set => SetValue(CaptionHeightProperty, value); } - + public static readonly StyledProperty HasLeftCaptionButtonProperty = AvaloniaProperty.Register(nameof(HasLeftCaptionButton));