Skip to content

Commit f0562a2

Browse files
committed
Don't rely on newly introduced constant from Cinnamon 6.0
1 parent 582fcc7 commit f0562a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

usr/lib/linuxmint/mintUpdate/mintUpdate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,10 @@ def run(self):
10191019
tooltip = _("Cinnamon applet")
10201020
elif update.spice_type == cinnamon.SPICE_TYPE_DESKLET:
10211021
tooltip = _("Cinnamon desklet")
1022-
elif update.spice_type == cinnamon.SPICE_TYPE_ACTION:
1022+
elif update.spice_type == "action":
1023+
# The constant cinnamon.SPICE_TYPE_ACTION is new in Cinnamon 6.0
1024+
# use the value "action" instead here so this code can be
1025+
# backported.
10231026
tooltip = _("Nemo action")
10241027
elif update.spice_type == cinnamon.SPICE_TYPE_THEME:
10251028
tooltip = _("Cinnamon theme")

0 commit comments

Comments
 (0)