Skip to content

Commit

Permalink
Added caption when drag & dropping items
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed Jan 6, 2025
1 parent 8eab222 commit f57a649
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Files.App/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -4032,4 +4032,8 @@
<data name="RemoveFromShelf" xml:space="preserve">
<value>Remove from shelf</value>
</data>
<data name="AddToShelf" xml:space="preserve">
<value>Add to Shelf</value>
<comment>Tooltip that displays when dragging items to the Shelf Pane</comment>
</data>
</root>
1 change: 1 addition & 0 deletions src/Files.App/UserControls/Pane/ShelfPane.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ private void Shelf_DragOver(object sender, DragEventArgs e)
return;

e.Handled = true;
e.DragUIOverride.Caption = Strings.AddToShelf.GetLocalizedResource();
e.AcceptedOperation = DataPackageOperation.Link;
}

Expand Down

0 comments on commit f57a649

Please sign in to comment.