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