Skip to content

Commit

Permalink
Fix on_drag_leave
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypw committed Mar 7, 2024
1 parent 5364e93 commit d7a44be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/View/AbstractDirectoryView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ namespace Files {
}

/* Signal emitted on destination when drag leaves the widget or *before* dropping */
private void on_drag_leave (uint timestamp) {
private void on_drag_leave () {
/* reset the drop-file for the icon renderer */
icon_renderer.drop_file = null;
/* stop any running drag autoscroll timer */
Expand Down
4 changes: 2 additions & 2 deletions src/View/Widgets/BreadcrumbsEntry.vala
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ namespace Files.View.Chrome {
}
}
Gtk.drag_finish (context, success, false, timestamp);
on_drag_leave (context, timestamp);
on_drag_leave ();
}
}

protected void on_drag_leave (uint time) {
protected void on_drag_leave () {
foreach (BreadcrumbElement element in elements) {
if (element.pressed) {
element.pressed = false;
Expand Down

0 comments on commit d7a44be

Please sign in to comment.