mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 01:34:37 -05:00
inner package navigation should be more obvious now
This commit is contained in:
parent
501d216594
commit
4cfcbd0dd7
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user