From bc81e0ce6d0f18a51b985c03925b80f959a0bf26 Mon Sep 17 00:00:00 2001 From: Mikhail Rubanov Date: Sun, 31 Dec 2023 15:52:25 -0300 Subject: [PATCH] =?UTF-8?q?Show=20border=20on=20drag=E2=80=99n=E2=80=99dro?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Features/Sources/CommonUI/DragNDropImageView.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/VoiceOver Designer/Features/Sources/CommonUI/DragNDropImageView.swift b/VoiceOver Designer/Features/Sources/CommonUI/DragNDropImageView.swift index 83e53c1d..aee2d235 100644 --- a/VoiceOver Designer/Features/Sources/CommonUI/DragNDropImageView.swift +++ b/VoiceOver Designer/Features/Sources/CommonUI/DragNDropImageView.swift @@ -110,6 +110,7 @@ open class DragNDropImageView: NSView { imageSize = sender.image()?.size isWaitingForFile = true hideText() + showBorder() return .copy } @@ -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 {