Skip to content

Commit

Permalink
Fix missing text when right clicking file name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2776 committed Jan 28, 2025
1 parent 9fc538f commit 49f770e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/PicView.Avalonia/Views/UC/EditableTitlebar.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,12 @@ public void SelectFileName()
{
return;
}

if (!NavigationHelper.CanNavigate(vm))
{
return;
}

if (vm.FileInfo is null)
{
return;
}

TextBox.Text = vm.FileInfo.Name;
var filename = vm.FileInfo.Name;
var start = TextBox.Text.Length - filename.Length;
Expand Down

0 comments on commit 49f770e

Please sign in to comment.