Skip to content

Commit

Permalink
Fix extensions automatically enabling on download (#12239)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
anaximeno committed Jun 17, 2024
1 parent 636d3ea commit fbd7191
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions files/usr/share/cinnamon/cinnamon-settings/bin/Spices.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,11 @@ def install_from_folder(self, folder, uuid, from_spices=False):

def _install_finished(self, job):
uuid = job['uuid']
if self.get_enabled(uuid) and self._proxy:
self._proxy.ReloadXlet('(ss)', uuid, self.collection_type.upper())
else:
self.send_proxy_signal('ReloadXlet', '(ss)', uuid, self.collection_type.upper())
if self.get_enabled(uuid):
if self._proxy:
self._proxy.ReloadXlet('(ss)', uuid, self.collection_type.upper())
else:
self.send_proxy_signal('ReloadXlet', '(ss)', uuid, self.collection_type.upper())

def uninstall(self, uuid):
""" uninstalls and removes the given extension"""
Expand Down

0 comments on commit fbd7191

Please sign in to comment.