mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
fix(ServeConfigModel.init): invoke callBack when server is null
This commit is contained in:
parent
d605d2f149
commit
d7630ee0d6
@ -19,11 +19,9 @@ class ServerConfigViewModel(application: Application): BaseViewModel(application
|
|||||||
null
|
null
|
||||||
}
|
}
|
||||||
}.onSuccess {
|
}.onSuccess {
|
||||||
if (it != null) {
|
|
||||||
onSuccess.invoke()
|
onSuccess.invoke()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fun save(server: Server, onSuccess: () -> Unit) {
|
fun save(server: Server, onSuccess: () -> Unit) {
|
||||||
execute {
|
execute {
|
||||||
|
Loading…
Reference in New Issue
Block a user