Mercurial > cgi-bin > hgweb.cgi > ClipMan
comparison src/name/blackcap/clipman/Files.kt @ 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 | c8ec2d7af3fb |
children | 8c6d6ad92aa1 |
comparison
equal
deleted
inserted
replaced
57:c6cccbe2f393 | 58:88056f373a94 |
---|---|
17 /* OS Type */ | 17 /* OS Type */ |
18 | 18 |
19 enum class OS { | 19 enum class OS { |
20 MAC, UNIX, WINDOWS, OTHER; | 20 MAC, UNIX, WINDOWS, OTHER; |
21 companion object { | 21 companion object { |
22 private val rawType = System.getProperty("os.name")?.toLowerCase() | 22 private val rawType = System.getProperty("os.name")?.lowercase() |
23 val type = if (rawType == null) { | 23 val type = if (rawType == null) { |
24 OTHER | 24 OTHER |
25 } else if (rawType.contains("win")) { | 25 } else if (rawType.contains("win")) { |
26 WINDOWS | 26 WINDOWS |
27 } else if (rawType.contains("mac")) { | 27 } else if (rawType.contains("mac")) { |