
Since disabling an extension will lead to disabling and re-enabling all following extensions in the list, always disable multiple extensions by looping through the list in reverse order. This lowers the execution time of the event handlers quite a bit if many extensions are installed. Thanks to Philippe Troin for identifying the problem and proposing the initial patch to change the extension order when reloading. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/177 https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96