diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2017-08-03 16:49:30 +0200 |
---|---|---|
committer | Alexander Neumann <alexander.neumann@picos-software.com> | 2017-08-03 16:49:30 +0200 |
commit | 600774f137bcf99b134609e978ea34e917b9a9ce (patch) | |
tree | cffa541621963af1f998fccd9a8cad20f4faea84 /lineedit.go | |
parent | Merge branch 'master' into graphicseffects (diff) | |
download | wireguard-windows-600774f137bcf99b134609e978ea34e917b9a9ce.tar.xz wireguard-windows-600774f137bcf99b134609e978ea34e917b9a9ce.zip |
[Line|Number]Edit: Invalidate border when changing read-only status
Diffstat (limited to 'lineedit.go')
-rw-r--r-- | lineedit.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lineedit.go b/lineedit.go index 758d4d80..59c7f010 100644 --- a/lineedit.go +++ b/lineedit.go @@ -196,6 +196,10 @@ func (le *LineEdit) SetReadOnly(readOnly bool) error { return newError("SendMessage(EM_SETREADONLY)") } + if readOnly != le.ReadOnly() { + le.invalidateBorderInParent() + } + le.readOnlyChangedPublisher.Publish() return nil |