From 4cfcbd0dd7568cd2e6eed2a0de97ec623327ddc5 Mon Sep 17 00:00:00 2001 From: iAmAsval Date: Wed, 15 Dec 2021 22:05:39 +0100 Subject: [PATCH] inner package navigation should be more obvious now --- .../Resources/Controls/Aed/GamePathVisualLineText.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/FModel/Views/Resources/Controls/Aed/GamePathVisualLineText.cs b/FModel/Views/Resources/Controls/Aed/GamePathVisualLineText.cs index c1ca2c11..20555192 100644 --- a/FModel/Views/Resources/Controls/Aed/GamePathVisualLineText.cs +++ b/FModel/Views/Resources/Controls/Aed/GamePathVisualLineText.cs @@ -32,13 +32,7 @@ namespace FModel.Views.Resources.Controls return base.CreateTextRun(startVisualColumn, context); } - private bool GamePathIsClickable() - { - if (string.IsNullOrEmpty(_gamePath)) - return false; - - return (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control; - } + private bool GamePathIsClickable() => !string.IsNullOrEmpty(_gamePath) && Keyboard.Modifiers == ModifierKeys.None; protected override void OnQueryCursor(QueryCursorEventArgs e) { @@ -49,7 +43,7 @@ namespace FModel.Views.Resources.Controls protected override void OnMouseDown(MouseButtonEventArgs e) { - if (e.ChangedButton != MouseButton.Right && (e.ChangedButton != MouseButton.Left || !GamePathIsClickable())) + if (e.ChangedButton != MouseButton.Left || !GamePathIsClickable()) return; if (e.Handled || OnGamePathClicked == null) return; @@ -82,4 +76,4 @@ namespace FModel.Views.Resources.Controls return a; } } -} \ No newline at end of file +}