Skip to content

Commit

Permalink
Show border on drag’n’drop
Browse files Browse the repository at this point in the history
  • Loading branch information
akaDuality committed Dec 31, 2023
1 parent 0631c00 commit bc81e0c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ open class DragNDropImageView: NSView {
imageSize = sender.image()?.size
isWaitingForFile = true
hideText()
showBorder()
return .copy
}

Expand Down Expand Up @@ -165,9 +166,13 @@ open class DragNDropImageView: NSView {
show(text: defaultText)
}

private func showBorder() {
border.isHidden = false
}

func show(text: String, changeTo nextText: String? = nil) {
label.isHidden = false
border.isHidden = false
showBorder()
self.text = text

if let nextText = nextText {
Expand Down

0 comments on commit bc81e0c

Please sign in to comment.