re-order config options
This commit is contained in:
@@ -56,8 +56,6 @@ fun getChapterCachePath(mangaId: Int, chapterId: Int): String {
|
|||||||
return applicationDirs.tempMangaCacheRoot + "/" + getChapterDir(mangaId, chapterId)
|
return applicationDirs.tempMangaCacheRoot + "/" + getChapterDir(mangaId, chapterId)
|
||||||
}
|
}
|
||||||
|
|
||||||
// (if (useTempCache) applicationDirs.tempCacheRoot else )
|
|
||||||
|
|
||||||
/** return value says if rename/move was successful */
|
/** return value says if rename/move was successful */
|
||||||
fun updateMangaDownloadDir(mangaId: Int, newTitle: String): Boolean {
|
fun updateMangaDownloadDir(mangaId: Int, newTitle: String): Boolean {
|
||||||
val mangaEntry = getMangaEntry(mangaId)
|
val mangaEntry = getMangaEntry(mangaId)
|
||||||
|
|||||||
@@ -19,18 +19,9 @@ class ServerConfig(config: Config, moduleName: String = MODULE_NAME) : SystemPro
|
|||||||
|
|
||||||
// proxy
|
// proxy
|
||||||
val socksProxyEnabled: Boolean by overridableConfig
|
val socksProxyEnabled: Boolean by overridableConfig
|
||||||
|
|
||||||
val socksProxyHost: String by overridableConfig
|
val socksProxyHost: String by overridableConfig
|
||||||
val socksProxyPort: String by overridableConfig
|
val socksProxyPort: String by overridableConfig
|
||||||
|
|
||||||
// downloader
|
|
||||||
val downloadAsCbz: Boolean by overridableConfig
|
|
||||||
|
|
||||||
// misc
|
|
||||||
val debugLogsEnabled: Boolean = debugLogsEnabled(GlobalConfigManager.config)
|
|
||||||
val systemTrayEnabled: Boolean by overridableConfig
|
|
||||||
val downloadsPath: String by overridableConfig
|
|
||||||
|
|
||||||
// webUI
|
// webUI
|
||||||
val webUIEnabled: Boolean by overridableConfig
|
val webUIEnabled: Boolean by overridableConfig
|
||||||
val webUIFlavor: String by overridableConfig
|
val webUIFlavor: String by overridableConfig
|
||||||
@@ -38,11 +29,19 @@ class ServerConfig(config: Config, moduleName: String = MODULE_NAME) : SystemPro
|
|||||||
val webUIInterface: String by overridableConfig
|
val webUIInterface: String by overridableConfig
|
||||||
val electronPath: String by overridableConfig
|
val electronPath: String by overridableConfig
|
||||||
|
|
||||||
|
// downloader
|
||||||
|
val downloadAsCbz: Boolean by overridableConfig
|
||||||
|
val downloadsPath: String by overridableConfig
|
||||||
|
|
||||||
// Authentication
|
// Authentication
|
||||||
val basicAuthEnabled: Boolean by overridableConfig
|
val basicAuthEnabled: Boolean by overridableConfig
|
||||||
val basicAuthUsername: String by overridableConfig
|
val basicAuthUsername: String by overridableConfig
|
||||||
val basicAuthPassword: String by overridableConfig
|
val basicAuthPassword: String by overridableConfig
|
||||||
|
|
||||||
|
// misc
|
||||||
|
val debugLogsEnabled: Boolean = debugLogsEnabled(GlobalConfigManager.config)
|
||||||
|
val systemTrayEnabled: Boolean by overridableConfig
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun register(config: Config) = ServerConfig(config.getConfig(MODULE_NAME))
|
fun register(config: Config) = ServerConfig(config.getConfig(MODULE_NAME))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,15 +14,15 @@ server.initialOpenInBrowserEnabled = true
|
|||||||
server.webUIInterface = "browser" # "browser" or "electron"
|
server.webUIInterface = "browser" # "browser" or "electron"
|
||||||
server.electronPath = ""
|
server.electronPath = ""
|
||||||
|
|
||||||
|
# downloader
|
||||||
|
server.downloadAsCbz = false
|
||||||
|
server.downloadsPath = ""
|
||||||
|
|
||||||
# Authentication
|
# Authentication
|
||||||
server.basicAuthEnabled = false
|
server.basicAuthEnabled = false
|
||||||
server.basicAuthUsername = ""
|
server.basicAuthUsername = ""
|
||||||
server.basicAuthPassword = ""
|
server.basicAuthPassword = ""
|
||||||
|
|
||||||
# downloader
|
|
||||||
server.downloadAsCbz = false
|
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
server.debugLogsEnabled = false
|
server.debugLogsEnabled = false
|
||||||
server.systemTrayEnabled = true
|
server.systemTrayEnabled = true
|
||||||
server.downloadsPath = ""
|
|
||||||
|
|||||||
Reference in New Issue
Block a user