From c9171259eec1f1afe0d00c75a6532d5d7971b47a Mon Sep 17 00:00:00 2001 From: Lamberto Basti Date: Wed, 28 Feb 2024 12:05:59 +0100 Subject: [PATCH] Disable packages download UI state in ToolWindowViewModel (#107) The handling for showing packages being downloaded in the ToolWindowViewModel has been deactivated. This was done to mitigate PKGS-1389 issue where the UI did not accurately reflect if packages were downloading or not. Co-authored-by: Lamberto Basti --- .../packagesearch/plugin/ui/model/ToolWindowViewModel.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugin/src/main/kotlin/com/jetbrains/packagesearch/plugin/ui/model/ToolWindowViewModel.kt b/plugin/src/main/kotlin/com/jetbrains/packagesearch/plugin/ui/model/ToolWindowViewModel.kt index f9fef0e4..aac7fe25 100644 --- a/plugin/src/main/kotlin/com/jetbrains/packagesearch/plugin/ui/model/ToolWindowViewModel.kt +++ b/plugin/src/main/kotlin/com/jetbrains/packagesearch/plugin/ui/model/ToolWindowViewModel.kt @@ -73,10 +73,11 @@ class ToolWindowViewModel(project: Project, private val viewModelScope: Coroutin isProjectSyncing -> PackageSearchToolWindowState.Loading( message = easterEggMessage ?: message("packagesearch.toolwindow.loading.syncing") ) - - packagesBeingDownloaded -> PackageSearchToolWindowState.Loading( - message = easterEggMessage ?: message("packagesearch.toolwindow.loading.downloading") - ) +// Commented to mitigate PKGS-1389 "dowloading packages" UI does not reflect if packages are really being downloaded or not +// https://youtrack.jetbrains.com/issue/PKGS-1389 +// packagesBeingDownloaded -> PackageSearchToolWindowState.Loading( +// message = easterEggMessage ?: message("packagesearch.toolwindow.loading.downloading") +// ) else -> PackageSearchToolWindowState.NoModules }