Skip to content

Commit

Permalink
Don't rely on newly introduced constant from Cinnamon 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clefebvre committed Jan 11, 2024
1 parent 582fcc7 commit f0562a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion usr/lib/linuxmint/mintUpdate/mintUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,10 @@ def run(self):
tooltip = _("Cinnamon applet")
elif update.spice_type == cinnamon.SPICE_TYPE_DESKLET:
tooltip = _("Cinnamon desklet")
elif update.spice_type == cinnamon.SPICE_TYPE_ACTION:
elif update.spice_type == "action":
# The constant cinnamon.SPICE_TYPE_ACTION is new in Cinnamon 6.0
# use the value "action" instead here so this code can be
# backported.
tooltip = _("Nemo action")
elif update.spice_type == cinnamon.SPICE_TYPE_THEME:
tooltip = _("Cinnamon theme")
Expand Down

0 comments on commit f0562a2

Please sign in to comment.