Skip to content

Commit 6e67624

Browse files
committed
cs_themes.py: Make sure activate_mode always activates a mode.
ref: 20864d2
1 parent e310226 commit 6e67624

File tree

1 file changed

+3
-2
lines changed
  • files/usr/share/cinnamon/cinnamon-settings/modules

1 file changed

+3
-2
lines changed

files/usr/share/cinnamon/cinnamon-settings/modules/cs_themes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,9 @@ def activate_mode(self, style, mode):
548548
new_same_variant = mode.get_variant_by_name(self.active_variant.name)
549549
if new_same_variant is not None:
550550
self.activate_variant(new_same_variant)
551-
else:
552-
self.activate_variant(mode.default_variant)
551+
return
552+
553+
self.activate_variant(mode.default_variant)
553554

554555
def activate_variant(self, variant):
555556
print("Activating variant:", variant.name)

0 commit comments

Comments
 (0)