mirror of
https://github.com/CherretGit/zaprett-app.git
synced 2026-03-22 00:28:15 +05:00
fix crashes
This commit is contained in:
@@ -111,19 +111,19 @@ fun restartService(callback: (String) -> Unit) {
|
||||
|
||||
fun getModuleVersion(callback: (String) -> Unit) {
|
||||
Shell.cmd("zaprett --version").submit { result ->
|
||||
callback(result.out.first())
|
||||
if (result.isSuccess) callback(result.out.first())
|
||||
}
|
||||
}
|
||||
|
||||
fun getNfqwsVersion(callback: (String) -> Unit) {
|
||||
Shell.cmd("zaprett nfqws-version").submit { result ->
|
||||
callback(result.out.first())
|
||||
if (result.isSuccess) callback(result.out.first())
|
||||
}
|
||||
}
|
||||
|
||||
fun getNfqws2Version(callback: (String) -> Unit) {
|
||||
Shell.cmd("zaprett nfqws2-version").submit { result ->
|
||||
callback(result.out.first())
|
||||
if (result.isSuccess) callback(result.out.first())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user