From 8551071ac91b30104b5bf90e5fbabf05c2fb8ed9 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Tue, 24 Jan 2023 14:12:54 +0200 Subject: [PATCH] dont auto-update major versions --- loader/src/loader/LoaderImpl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/loader/src/loader/LoaderImpl.cpp b/loader/src/loader/LoaderImpl.cpp index 9ab698ad..8d398630 100644 --- a/loader/src/loader/LoaderImpl.cpp +++ b/loader/src/loader/LoaderImpl.cpp @@ -604,6 +604,11 @@ void Loader::Impl::checkForLoaderUpdates() { return; } + // don't auto-update major versions + if (ver.getMajor() > this->getVersion().getMajor()) { + return; + } + // find release asset for (auto asset : root.needs("assets").iterate()) { auto obj = asset.obj();