mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
fix(ServeConfigModel.init): invoke callBack when server is null
This commit is contained in:
@@ -19,9 +19,7 @@ class ServerConfigViewModel(application: Application): BaseViewModel(application
|
||||
null
|
||||
}
|
||||
}.onSuccess {
|
||||
if (it != null) {
|
||||
onSuccess.invoke()
|
||||
}
|
||||
onSuccess.invoke()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user