diff src/name/blackcap/clipman/Main.kt @ 35:5f8475b37e23

Got it correctly enabling and disabling menu items.
author David Barts <n5jrn@me.com>
date Thu, 30 Jan 2020 20:21:42 -0800
parents 0c6c18a733b7
children 33fbe3a78d84
line wrap: on
line diff
--- a/src/name/blackcap/clipman/Main.kt	Thu Jan 30 19:38:59 2020 -0800
+++ b/src/name/blackcap/clipman/Main.kt	Thu Jan 30 20:21:42 2020 -0800
@@ -138,6 +138,8 @@
         source.basedOn.let {
             if (it is PasteboardItem.HTML || it is PasteboardItem.RTF) {
                 styledRequired.enable()
+            } else {
+                styledRequired.disable()
             }
         }
     }