Skip to content

Conversation

@TheOneRing
Copy link
Contributor

No description provided.

const QString buttonText = tr("Open Download Page");
notification.setButtons({buttonText});
auto *sysNotification = ocApp()->systemNotificationManager()->notify(std::move(notification));
connect(sysNotification, &SystemNotification::buttonClicked, this, [buttonText, url](const QString &button) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how often do I get the notification? 🤔 once per software restart?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the effort reasonably to show it only once per new available version? There might be users who can't install an update without an admin, so they can't do anything about the notification.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The system notification is usually only displayed for a couple of seconds, so it's not too intrusive.
If we wanted to implement a "skip this update" functionality, we would need to persist the decision. Also, we would need to add a second action to the notification, which is currently not implemented on Mac.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds all reasonable :-) thank you!

updateJob->start();
} else {
qCWarning(lcUpdateNotifier) << u"Update check failed with HTTP code" << job->httpStatusCode();
qCWarning(lcUpdateNotifier) << u"Update check config.json with HTTP code" << job->httpStatusCode();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are the warnings user facing? because then they'd be very technical 🙈

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only logs

@TheOneRing TheOneRing requested a review from kulmann October 7, 2025 12:08
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@TheOneRing TheOneRing merged commit e9ac8ef into main Oct 7, 2025
13 checks passed
@TheOneRing TheOneRing deleted the work/hash branch October 7, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants