Fix deprecated check error
This commit is contained in:
@@ -200,7 +200,7 @@ class DashboardViewModel :
|
|||||||
|
|
||||||
private fun checkDeprecatedNotes() {
|
private fun checkDeprecatedNotes() {
|
||||||
viewModelScope.launch(Dispatchers.IO) {
|
viewModelScope.launch(Dispatchers.IO) {
|
||||||
try {
|
runCatching {
|
||||||
// Check if deprecated warnings are disabled
|
// Check if deprecated warnings are disabled
|
||||||
if (Settings.disableDeprecatedWarnings) {
|
if (Settings.disableDeprecatedWarnings) {
|
||||||
return@launch
|
return@launch
|
||||||
@@ -227,8 +227,6 @@ class DashboardViewModel :
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
|
||||||
sendError(e)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user