Closed jefferyto closed 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".
Looks good, thanks!
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
Action
s toMenuItem
s, since they are nowMenuItem
objects.Fixes #50.