marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
12.27k stars 420 forks source link

[BUG] Large search box can remain showing while their are search results #2422

Closed hboyd2003 closed 2 months ago

hboyd2003 commented 3 months ago

Please confirm these before moving forward

UniGetUI Version

3.1.0

Windows version, edition, and architecture

Windows 11 Pro 22H2 x64

Describe your issue

When searching for packages the large center search box can remain showing even when their are search results.

Steps to reproduce the issue

  1. In the top right search box enter a query.
  2. Press enter to begin the search query
  3. Before the query has finished delete everything in the search box.

UniGetUI Log

UniGetUI Log ```text [2024-07-04 0:19:52] __ __ _ ______ __ __ ______ / / / /___ (_) ____/__ / /_/ / / / _/ / / / / __ \/ / / __/ _ \/ __/ / / // / / /_/ / / / / / /_/ / __/ /_/ /_/ // / \____/_/ /_/_/\____/\___/\__/\____/___/ Welcome to UniGetUI Version 3.1.0 [2024-07-04 0:19:52] [2024-07-04 0:19:52] Version Code: 3.1 [2024-07-04 0:19:52] Using bundled GSudo at C:\Program Files\WingetUI\Assets\Utilities\gsudo.exe [2024-07-04 0:19:52] Loaded language locale: en [2024-07-04 0:19:53] Starting update check [2024-07-04 0:19:53] Randomly-generated background API auth token for the current session: k1q7klbthmdgjp07jfag86ekugweda5wsmg6oq2umhmwij0cb6s456g805o9pn6f [2024-07-04 0:19:53] Api running on http://localhost:7058 [2024-07-04 0:19:53] Begin "which" search for command winget.exe [2024-07-04 0:19:53] Moving Bundled Chocolatey from old path to new path... [2024-07-04 0:19:53] An error occurred while migrating chocolatey [2024-07-04 0:19:53] System.ArgumentException: The path is empty. (Parameter 'relativeTo') at System.IO.Path.GetRelativePath(String relativeTo, String path, StringComparison comparisonType) at UniGetUI.PackageEngine.Managers.ChocolateyManager.Chocolatey.LoadManager() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.Chocolatey\Chocolatey.cs:line 278 [2024-07-04 0:19:53] Begin "which" search for command npm [2024-07-04 0:19:53] Begin "which" search for command python.exe [2024-07-04 0:19:53] Begin "which" search for command dotnet.exe [2024-07-04 0:19:53] Lang files were updated successfully from GitHub [2024-07-04 0:19:53] UniGetUI is up to date [2024-07-04 0:19:53] Downloaded new icons and screenshots successfully! [2024-07-04 0:19:53] Command winget.exe was found on C:\Users\harri\AppData\Local\Microsoft\WindowsApps\winget.exe [2024-07-04 0:19:53] Command npm was found on C:\Program Files\nodejs\npm [2024-07-04 0:19:53] Command dotnet.exe was found on C:\Program Files\dotnet\dotnet.exe [2024-07-04 0:19:53] Saving window geometry 991,453,1185,791,0 [2024-07-04 0:19:53] Command python.exe was not found on the system [2024-07-04 0:19:53] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ █ Name: Pip █ Enabled: False █ THE MANAGER IS DISABLED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ [2024-07-04 0:19:53] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ █ Name: PowerShell █ Enabled: False █ THE MANAGER IS DISABLED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ [2024-07-04 0:19:54] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ █ Name: .NET Tool █ Enabled: False █ THE MANAGER IS DISABLED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ [2024-07-04 0:19:54] Loaded 2 sources for manager Winget [2024-07-04 0:19:54] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ █ Name: Winget █ Enabled: True █ Found: True █ Fancye exe name: winget.exe █ Executable path: C:\Users\harri\AppData\Local\Microsoft\WindowsApps\winget.exe █ Call arguments: █ Version: █ Naive WinGet CLI Version: v1.8.1791 █ Microsoft.WinGet.Client PSModule version: █ Using Native WinGet helper (COM Api) ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ [2024-07-04 0:19:54] Begin "which" search for command scoop [2024-07-04 0:19:54] Command scoop was found on C:\Users\harri\scoop\shims\scoop [2024-07-04 0:19:54] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ █ Name: Npm █ Enabled: False █ THE MANAGER IS DISABLED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ [2024-07-04 0:19:55] Loaded 4 sources for manager Scoop [2024-07-04 0:19:55] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ █ Name: Scoop █ Enabled: True █ Found: True █ Fancye exe name: scoop █ Executable path: C:\Windows\system32\windowspowershell\v1.0\powershell.exe █ Call arguments: -NoProfile -ExecutionPolicy Bypass -Command scoop █ Version: █ Current Scoop version: █ d337bb1f chore(release): Bump to version 0.4.2 (#5964) █ █ 'main' bucket: █ c44bb2072 fastfetch: Update to version 2.17.2 █ █ 'extras' bucket: █ fc017781e linqpad: Update to version 8.4.11 █ █ 'nirsoft' bucket: █ 62f97d6 Update README.md █ █ 'java' bucket: █ fdb41b89 temurin17-nightly-jre: Update to version 17.0.12-6.0.ea ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ [2024-07-04 0:19:55] Loaded 1 sources for manager Chocolatey [2024-07-04 0:19:55] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ █ Name: Chocolatey █ Enabled: True █ Found: True █ Fancye exe name: choco.exe █ Executable path: C:\Users\harri\AppData\Local\UniGetUI\Chocolatey\choco.exe █ Call arguments: █ Version: █ This is try 1/3. Retrying after 400 milliseconds. █ Error converted to warning: █ Access to the path 'C:\ProgramData\chocolatey\config\chocolatey.config.67888.update' is denied. █ This is try 2/3. Retrying after 600 milliseconds. █ Error converted to warning: █ Access to the path 'C:\ProgramData\chocolatey\config\chocolatey.config.67888.update' is denied. █ Maximum tries of 3 reached. Throwing error. █ 2.2.2 ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ [2024-07-04 0:19:55] Manager Chocolatey has not implemented RefreshPackageIndexes [2024-07-04 0:19:56] Loaded 2 sources for manager Winget [2024-07-04 0:19:56] Dependency WinGet PowerShell Module for manager Winget is present [2024-07-04 0:19:56] Begin "which" search for command scoop-search.exe [2024-07-04 0:19:56] Command scoop-search.exe was found on C:\Users\harri\scoop\shims\scoop-search.exe [2024-07-04 0:19:56] Dependency Scoop-Search for manager Scoop is present [2024-07-04 0:19:56] Begin "which" search for command git.exe [2024-07-04 0:19:56] Found 0 installed packages from Chocolatey [2024-07-04 0:19:56] Found 0 available updates from Chocolatey [2024-07-04 0:19:56] Command git.exe was found on C:\Program Files\Git\cmd\git.exe [2024-07-04 0:19:56] Dependency Git for manager Scoop is present [2024-07-04 0:19:56] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface. [2024-07-04 0:19:56] Found 38 installed packages from Scoop [2024-07-04 0:19:57] Loaded 1 sources for manager Chocolatey [2024-07-04 0:19:57] Loaded 4 sources for manager Scoop [2024-07-04 0:20:00] Found 38 installed packages from Scoop [2024-07-04 0:20:03] Found 492 installed packages from Winget [2024-07-04 0:20:03] Found 73 available updates from Winget [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=ds4windows [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=gpu-z [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=graalvm21-jdk11 [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=graalvm22-jdk17 [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=iconsextract [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=meshroom [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=msiafterburner [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=openrgb [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=opus-tools [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=resource-tuner [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=secureuxtheme [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=serviwin [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=simplewmiview [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=wifiinfoview [2024-07-04 0:20:04] Upgradable scoop package not listed on installed packages - id=winaero-tweaker [2024-07-04 0:20:04] Found 8 available updates from Scoop [2024-07-04 0:20:04] Invalid value for UpdatesCheckInterval, using default value of 3600 seconds [2024-07-04 0:20:10] Begin "which" search for command scoop-search.exe [2024-07-04 0:20:11] Command scoop-search.exe was found on C:\Users\harri\scoop\shims\scoop-search.exe [2024-07-04 0:20:11] Found 114 available packages from Winget with the query Windows 11 [2024-07-04 0:20:11] Loaded 1 sources for manager Chocolatey [2024-07-04 0:20:11] Found 17 available packages from Scoop with the query Windows 11 [2024-07-04 0:20:11] Found 17 available packages from Chocolatey with the query Windows 11 ```

Package Managers Logs

Winget Log ```text Manager Winget with version: Naive WinGet CLI Version: v1.8.1791 Microsoft.WinGet.Client PSModule version: Using Native WinGet helper (COM Api) —————————————————————————————————————————— Logged native task on manager Winget. Task type is ListSources Process start time: 2024-07-04 0:19:54 Process end time: 2024-07-04 0:19:54 -- Task information ... The task reported success —————————————————————————————————————————— Logged subprocess-based task on manager Winget. Task type is RefreshIndexes Subprocess executable: "C:\Users\harri\AppData\Local\Microsoft\WindowsApps\winget.exe" Command-line arguments: " source update --disable-interactivity" Process start time: 2024-07-04 0:19:55 Process end time: 2024-07-04 0:19:56 -- Process STDOUT ... Return code: SUCCESS (0) —————————————————————————————————————————— Logged subprocess-based task on manager Winget. Task type is ListPackages Subprocess executable: "C:\Windows\system32\windowspowershell\v1.0\powershell.exe" Command-line arguments: "-ExecutionPolicy Bypass -NoLogo -NoProfile" Process start time: 2024-07-04 0:19:55 Process end time: 2024-07-04 0:20:03 -- Process STDIN ... -- Process STDOUT ... -- Process STDERR Write-Output : The term 'Write-Output' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Write-Output (Get-Module -Name Microsoft.WinGet.Client).Version + ~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Write-Output:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Return code: SUCCESS (0) —————————————————————————————————————————— Logged native task on manager Winget. Task type is ListSources Process start time: 2024-07-04 0:19:56 Process end time: 2024-07-04 0:19:56 -- Task information ... The task reported success —————————————————————————————————————————— Logged subprocess-based task on manager Winget. Task type is ListUpdates Subprocess executable: "C:\Windows\system32\windowspowershell\v1.0\powershell.exe" Command-line arguments: "-ExecutionPolicy Bypass -NoLogo -NoProfile" Process start time: 2024-07-04 0:19:56 Process end time: 2024-07-04 0:20:03 -- Process STDIN ... -- Process STDOUT ... -- Process STDERR Write-Output : The term 'Write-Output' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Write-Output (Get-Module -Name Microsoft.WinGet.Client).Version + ~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Write-Output:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Return code: SUCCESS (0) —————————————————————————————————————————— Logged native task on manager Winget. Task type is FindPackages Process start time: 2024-07-04 0:20:10 Process end time: 2024-07-04 0:20:11 -- Task information ... The task reported success —————————————————————————————————————————— ```

Relevant information

If you use the center search button, you loose focus of the search box when the query begins and it is impossible to regain focus of the search box until after the query has completed.

Screenshots and videos

CTRL + A was used to clear the search box in this example. None256