Skip to content

Commit 2edb5d5

Browse files
authored
Merge pull request #3385 from mrixner/always-update-indexes
Always Update Indexes
2 parents 339f48c + eefcbb1 commit 2edb5d5

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

src/UniGetUI.PackageEngine.Managers.Vcpkg/Vcpkg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public override void RefreshPackageIndexes()
345345
var (vcpkgRootFound, vcpkgRoot) = GetVcpkgRoot();
346346
var (gitFound, gitPath) = CoreTools.Which("git");
347347

348-
if (!found || !gitFound || !vcpkgRootFound || Settings.Get("DisableUpdateVcpkgGitPorts"))
348+
if (!found || !gitFound || !vcpkgRootFound)
349349
{
350350
INativeTaskLogger logger = TaskLogger.CreateNew(LoggableTaskType.RefreshIndexes);
351351
if (Settings.Get("DisableUpdateVcpkgGitPorts")) logger.Error("User has disabled updating sources");

src/UniGetUI/Pages/SettingsPage.xaml.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,6 @@ public SettingsPage()
245245

246246
// ----------------------------------------------------------------------------------------
247247

248-
CheckboxCard Vcpkg_UpdateGitPorts = new()
249-
{
250-
Text = CoreTools.Translate(
251-
"Update vcpkg's Git portfiles automatically (requires Git installed)"),
252-
SettingName = "DisableUpdateVcpkgGitPorts"
253-
};
254-
ExtraSettingsCards[PEInterface.Vcpkg].Add(Vcpkg_UpdateGitPorts);
255-
256248
// GetDefaultTriplet factors in the `DefaultVcpkgTriplet` setting as its first priority
257249
Settings.SetValue("DefaultVcpkgTriplet", Vcpkg.GetDefaultTriplet());
258250
ComboboxCard Vcpkg_DefaultTriplet = new()

0 commit comments

Comments
 (0)