ThierryHFR / Big-Sur-StatusArea

macOS Big Sur "System Tray" look for Gnome Desktop
https://www.pling.com/p/1427290/
26 stars 4 forks source link

Remove orientation lock on devices that do not handle it #49

Open florentdescroix opened 2 years ago

florentdescroix commented 2 years ago

Hi, I have a desktop computer thus the orientation lock action is completely unecessary in my case.

To avoid having it, I modified the indicators/system.js file and put the whole block about orientation lock inside the following condition :
if (this._system._systemActions._orientationLockAction) {

I don't know if that's the actual good solution, because I can't tell if devices that have an orientation effectively have the this._system._systemActions._orientationLockAction property. But at least my system doesn't have it so it works :)

johnmmcgee commented 2 years ago

i also have this option showing up, but greyed out.