changeset 58:88056f373a94

Set app name, deal with some deprecation.
author David Barts <n5jrn@me.com>
date Sat, 26 Mar 2022 23:45:34 -0700
parents c6cccbe2f393
children 8b707fa0a4fc
files src/name/blackcap/clipman/CoerceDialog.kt src/name/blackcap/clipman/Files.kt src/name/blackcap/clipman/Main.kt
diffstat 3 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/name/blackcap/clipman/CoerceDialog.kt	Wed Mar 23 23:56:29 2022 -0700
+++ b/src/name/blackcap/clipman/CoerceDialog.kt	Sat Mar 26 23:45:34 2022 -0700
@@ -209,7 +209,7 @@
     }
 
     private fun normalizeFont(font: String): String {
-        val lcFont = font.toLowerCase()
+        val lcFont = font.lowercase()
         return when (lcFont) {
             in setOf("monospace", "serif", "sans-serif") -> lcFont
             "monospaced" -> "monospace"
--- a/src/name/blackcap/clipman/Files.kt	Wed Mar 23 23:56:29 2022 -0700
+++ b/src/name/blackcap/clipman/Files.kt	Sat Mar 26 23:45:34 2022 -0700
@@ -19,7 +19,7 @@
 enum class OS {
     MAC, UNIX, WINDOWS, OTHER;
     companion object {
-        private val rawType = System.getProperty("os.name")?.toLowerCase()
+        private val rawType = System.getProperty("os.name")?.lowercase()
         val type = if (rawType == null) {
                 OTHER
             } else if (rawType.contains("win")) {
--- a/src/name/blackcap/clipman/Main.kt	Wed Mar 23 23:56:29 2022 -0700
+++ b/src/name/blackcap/clipman/Main.kt	Sat Mar 26 23:45:34 2022 -0700
@@ -220,6 +220,7 @@
     LOGGER.log(Level.INFO, "beginning execution")
     if (OS.type == OS.MAC) {
         System.setProperty("apple.laf.useScreenMenuBar", "true")
+        System.setProperty("apple.awt.application.name", MYNAME)
     }
     inSwingThread {
         Application.initialize()