Skip to content

Commit c0837f1

Browse files
committed
Do not show fallback chocolatey path if the fallback path does not exist
1 parent 7a9c79c commit c0837f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/UniGetUI.PackageEngine.Managers.Chocolatey/Chocolatey.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ protected override ManagerStatus LoadManager()
295295
else
296296
{
297297
status.ExecutablePath = Path.Join(CoreData.UniGetUIDataDirectory, "Chocolatey", "choco.exe");
298+
if (!File.Exists(status.ExecutablePath)) status.ExecutablePath = "";
298299
}
299300

300301
status.Found = File.Exists(status.ExecutablePath);

0 commit comments

Comments
 (0)