File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Demos/Compose/src/main/kotlin/com/groupdocs/ui/common Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Settings private constructor(val path: Path) {
20
20
}
21
21
22
22
var licensePath: String?
23
- get() = properties.getProperty(" licensePath" ).ifBlank { null }
23
+ get() = properties.getProperty(" licensePath" )? .ifBlank { null }
24
24
set(value) {
25
25
properties.setProperty(" licensePath" , if (value.isNullOrBlank()) " " else value)
26
26
}
@@ -58,9 +58,7 @@ class Settings private constructor(val path: Path) {
58
58
59
59
companion object {
60
60
61
- private val settingsPath: Path =
62
- Paths .get(File (SettingsViewModel ::class .java.protectionDomain.codeSource.location.toURI()).path)
63
- .parent.resolve(" settings.properties" )
61
+ private val settingsPath: Path = Paths .get(System .getProperty(" user.home" )).resolve(" groupdocs-comparison-compose.properties" )
64
62
private var _instance : Settings ? = null
65
63
66
64
val instance: Settings
You can’t perform that action at this time.
0 commit comments