Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve "update available" message in AppImages #8966

Merged
merged 1 commit into from
Sep 23, 2021

Conversation

fmoc
Copy link
Contributor

@fmoc fmoc commented Aug 27, 2021

Contributes to #8923. Not the nicest solution, but I didn't want to add another entry to the enum.

@fmoc fmoc requested a review from a team August 27, 2021 20:53
@fmoc fmoc changed the base branch from master to 2.9 August 27, 2021 20:53
#ifdef Q_OS_LINUX
// https://docs.appimage.org/packaging-guide/environment-variables.html
// TODO: update once AppImageUpdate has been implemented
if (qgetenv("APPIMAGE") != nullptr) {
Copy link
Contributor

Choose a reason for hiding this comment

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

qEnvIsSet

@fmoc fmoc force-pushed the work/better-update-message branch from e6378c1 to 3546909 Compare September 15, 2021 14:41
@fmoc fmoc requested a review from TheOneRing September 15, 2021 14:43
// https://docs.appimage.org/packaging-guide/environment-variables.html
// TODO: update once AppImageUpdate has been implemented
if (qEnvironmentVariableIsSet("APPIMAGE")) {
return tr("New %1 available. Please click <a href='%2'>here</a> to download the new AppImage manually.").arg(updateVersion).arg(_updateInfo.web());
Copy link
Contributor

Choose a reason for hiding this comment

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

Just saw it now, don't use arg().arg() but arg(1,2,3). Use QString::number() for numbers as the normal overload is 💩

@TheOneRing TheOneRing added this to the 2.9.1 milestone Sep 23, 2021
@fmoc fmoc force-pushed the work/better-update-message branch from 3546909 to ec118f0 Compare September 23, 2021 09:53
@TheOneRing TheOneRing merged commit b860cc2 into 2.9 Sep 23, 2021
@delete-merged-branch delete-merged-branch bot deleted the work/better-update-message branch September 23, 2021 09:57
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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.

2 participants