Skip to content

Commit

Permalink
fix: do not show version changes in systray tooltip if the NoVersion …
Browse files Browse the repository at this point in the history
…option is used in arch-update.conf
  • Loading branch information
Antiz96 committed Oct 1, 2024
1 parent e90fad1 commit d14a92e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions po/arch-update.pot
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: src/lib/check.sh:34 src/lib/check.sh:37
#: src/lib/check.sh:38 src/lib/check.sh:41
#, sh-format
msgid "${update_number} update available"
msgstr ""

#: src/lib/check.sh:42 src/lib/check.sh:44
#: src/lib/check.sh:46 src/lib/check.sh:48
#, sh-format
msgid "${update_number} updates available"
msgstr ""
Expand Down
4 changes: 2 additions & 2 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: src/lib/check.sh:34 src/lib/check.sh:37
#: src/lib/check.sh:38 src/lib/check.sh:41
#, sh-format
msgid "${update_number} update available"
msgstr "${update_number} mise à jour disponible"

#: src/lib/check.sh:42 src/lib/check.sh:44
#: src/lib/check.sh:46 src/lib/check.sh:48
#, sh-format
msgid "${update_number} updates available"
msgstr "${update_number} mises à jour disponibles"
Expand Down
4 changes: 4 additions & 0 deletions src/lib/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ else
update_available=$(checkupdates)
fi

if [ -z "${no_version}" ]; then
update_available=$(echo "${update_available}" | awk '{print $1}')
fi

if [ -n "${notif}" ]; then
# shellcheck disable=SC2154
echo "${update_available}" > "${statedir}/current_updates_check"
Expand Down

0 comments on commit d14a92e

Please sign in to comment.