minor update

This commit is contained in:
sathwikcs
2025-01-24 16:04:32 +05:30
parent edb933146b
commit 4fc60e4180
2 changed files with 6 additions and 5 deletions

View File

@@ -26,9 +26,6 @@ fun HomeScreen(
val isDownloading by viewModel.downloadProgress.collectAsState()
val context = LocalContext.current
NetworkErrorDialog(showDialog = !uiState.isConnected, onRetry = {
viewModel.reStartMonitoring()
})
if (uiState.isConnected) {
@@ -50,6 +47,11 @@ fun HomeScreen(
modifier = modifier
)
}else{
NetworkErrorDialog(showDialog = true, onRetry = {
viewModel.reStartMonitoring()
}
)
}
}