Fix deprecated check error

This commit is contained in:
世界
2026-04-11 12:02:46 +08:00
parent ab09918615
commit 509ef85646

View File

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