From 6e69c0567a1706c2662d09e9e2523f989499337a Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 29 Nov 2024 21:15:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20do=20not=20use=20`=E2=8C=98`=20key?= =?UTF-8?q?=20to=20start=20fetch/pull/push/stash=20directly=20on=20macOS?= =?UTF-8?q?=20(#766)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: leo --- src/Views/RepositoryToolbar.axaml.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Views/RepositoryToolbar.axaml.cs b/src/Views/RepositoryToolbar.axaml.cs index 1d9d634b..5279382b 100644 --- a/src/Views/RepositoryToolbar.axaml.cs +++ b/src/Views/RepositoryToolbar.axaml.cs @@ -50,9 +50,6 @@ namespace SourceGit.Views if (launcher is not null && DataContext is ViewModels.Repository repo) { var startDirectly = launcher.HasKeyModifier(KeyModifiers.Control); - if (!startDirectly && OperatingSystem.IsMacOS()) - startDirectly = launcher.HasKeyModifier(KeyModifiers.Meta); - launcher.ClearKeyModifier(); repo.Fetch(startDirectly); e.Handled = true; @@ -65,9 +62,6 @@ namespace SourceGit.Views if (launcher is not null && DataContext is ViewModels.Repository repo) { var startDirectly = launcher.HasKeyModifier(KeyModifiers.Control); - if (!startDirectly && OperatingSystem.IsMacOS()) - startDirectly = launcher.HasKeyModifier(KeyModifiers.Meta); - launcher.ClearKeyModifier(); repo.Pull(startDirectly); e.Handled = true; @@ -80,9 +74,6 @@ namespace SourceGit.Views if (launcher is not null && DataContext is ViewModels.Repository repo) { var startDirectly = launcher.HasKeyModifier(KeyModifiers.Control); - if (!startDirectly && OperatingSystem.IsMacOS()) - startDirectly = launcher.HasKeyModifier(KeyModifiers.Meta); - launcher.ClearKeyModifier(); repo.Push(startDirectly); e.Handled = true; @@ -95,9 +86,6 @@ namespace SourceGit.Views if (launcher is not null && DataContext is ViewModels.Repository repo) { var startDirectly = launcher.HasKeyModifier(KeyModifiers.Control); - if (!startDirectly && OperatingSystem.IsMacOS()) - startDirectly = launcher.HasKeyModifier(KeyModifiers.Meta); - launcher.ClearKeyModifier(); repo.StashAll(startDirectly); e.Handled = true;