Skip to content

extensionManager: Add extensionShouldBeEnabled() method

Florian Müllner requested to merge fmuellner/gnome-shell:should-enable into main

Extensions must always undo any monkey-patching on disable(), but they may want to preserve some state in case they are only temporarily disabled, i.e. when they are rebased due to some other extension getting disabled.

While it's already possible for extensions to implement this behavior themselves, an official convenience method can avoid errors (like only checking enabled-extensions, but not disabled-extensions).

Merge request reports