fix crashes

This commit is contained in:
CherretGit
2026-03-14 23:35:03 +07:00
parent c387cd13b8
commit f9b223d4e2

View File

@@ -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())
}
}