arelange / gnome-shell-extension-hibernate-status

Gnome Shell extension that adds a hibernate/hybrid suspend button in Status menu.
GNU General Public License v2.0
151 stars 54 forks source link

Fix disable #51

Closed jefferyto closed 4 years ago

jefferyto commented 4 years ago

This fixes disabling the extension in 3.36.

Whenever the desktop is locked (or hibernate is triggered which locks the desktop), all extensions are disabled. (Extensions are re-enabled after the desktop is unlocked.)

Before this fix, whenever the desktop is locked, the extension would throw an error and stop working for the rest of the session.

This also renames Actions to MenuItems, since they are now MenuItem objects.

Fixes #50.

jefferyto commented 4 years ago

I'd also like to move the "Hibernate" / "Hybrid Sleep" options to after "Log Off" and before "Suspend" and "Power Off...". I will open another PR after this PR is merged.

Edit: actually I'd like to move the items in between "Suspend" and "Power Off...". "Power Off..." should be the last item in the menu, and there is no need for a separate section for "Hibernate" and "Hybrid Sleep".

p91paul commented 4 years ago

Looks good, thanks!