Skip to content

Commit

Permalink
improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Dec 10, 2023
1 parent 78b39da commit ab85efc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/drag_overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ mod imp {
fn set_target(&self, target: Option<gtk::DropTarget>) {
let obj = self.obj();

if let Some(target) = self.target.take() {
obj.remove_controller(&target);
if let Some(prev_target) = self.target.take() {
obj.remove_controller(&prev_target);

let handler_id = self.target_handler_id.take().unwrap();
target.disconnect(handler_id);
prev_target.disconnect(handler_id);
}

if let Some(ref target) = target {
Expand Down

0 comments on commit ab85efc

Please sign in to comment.