Skip to content

Commit fbd7191

Browse files
authored
Fix extensions automatically enabling on download (#12239)
The extension reload signal was being triggered automatically in the end of the installation process, but this only should apply if the extension was already enabled before (maybe after an update)
1 parent 636d3ea commit fbd7191

File tree

1 file changed

+5
-4
lines changed
  • files/usr/share/cinnamon/cinnamon-settings/bin

1 file changed

+5
-4
lines changed

files/usr/share/cinnamon/cinnamon-settings/bin/Spices.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -773,10 +773,11 @@ def install_from_folder(self, folder, uuid, from_spices=False):
773773

774774
def _install_finished(self, job):
775775
uuid = job['uuid']
776-
if self.get_enabled(uuid) and self._proxy:
777-
self._proxy.ReloadXlet('(ss)', uuid, self.collection_type.upper())
778-
else:
779-
self.send_proxy_signal('ReloadXlet', '(ss)', uuid, self.collection_type.upper())
776+
if self.get_enabled(uuid):
777+
if self._proxy:
778+
self._proxy.ReloadXlet('(ss)', uuid, self.collection_type.upper())
779+
else:
780+
self.send_proxy_signal('ReloadXlet', '(ss)', uuid, self.collection_type.upper())
780781

781782
def uninstall(self, uuid):
782783
""" uninstalls and removes the given extension"""

0 commit comments

Comments
 (0)