下载远程webdav书籍时检查保存路径是否设置

pull/2395/head
Xwite 2 years ago committed by GitHub
parent 6c12858c15
commit cfacb729c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/io/legado/app/model/localBook/LocalBook.kt

@ -308,6 +308,8 @@ object LocalBook {
val webDavUrl = localBook.getRemoteUrl()
if (webDavUrl.isNullOrBlank()) return null
try {
AppConfig.defaultBookTreeUri
?: throw NoStackTraceException("没有设置书籍保存位置!")
val uri = AppWebDav.authorization?.let {
val webdav = WebDav(webDavUrl, it)
runBlocking {

Loading…
Cancel
Save