fix(startup) respect update checker during startup in macOS

fixes https://github.com/nextcloud/desktop/issues/8029

Signed-off-by: Rello <Rello@users.noreply.github.com>
This commit is contained in:
Rello 2025-06-20 16:59:38 +02:00 committed by Matthieu Gallien
parent 4d111921b8
commit 0747d0053d

View File

@ -239,8 +239,9 @@ SparkleUpdater::SparkleUpdater(const QUrl& appCastUrl)
, _interface(std::make_unique<SparkleInterface>(this))
{
_interface->delegate = [[NCSparkleUpdaterDelegate alloc] initWithOwner:_interface.get()];
const BOOL startUpdater = autoUpdaterAllowed() ? YES : NO;
_interface->updaterController =
[[SPUStandardUpdaterController alloc] initWithStartingUpdater:YES
[[SPUStandardUpdaterController alloc] initWithStartingUpdater:startUpdater
updaterDelegate:_interface->delegate
userDriverDelegate:nil];