From 87c31e39cbb395241380b30a7698054284cd80bc Mon Sep 17 00:00:00 2001 From: Lamberto Basti Date: Wed, 28 Feb 2024 12:06:05 +0100 Subject: [PATCH] Disable packages download UI state in ToolWindowViewModel (#108) 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 dbc554f5..52f482f7 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 @@ -78,10 +78,11 @@ class ToolWindowViewModel(project: Project) : Disposable { 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 }