Commit graph

6 commits

Author SHA1 Message Date
Devin Lin
5decdbe2b5 quicksettings/autorotate: Properly listen to external changes
This ensures that external changes to screen rotation are listened to
and updated in the quicksetting.

TODO: haven't actually tested on device yet
2024-11-09 09:39:55 +00:00
Devin Lin
1ac2745bfb quicksettings/screenrotation: Don't call rotate in signal handler
This is a workaround for https://invent.kde.org/plasma/plasma-mobile/-/issues/405, where if the caller gets deleted by the screen rotation, the entire shell crashes.

Eventually, we need to implement
https://invent.kde.org/plasma/plasma-mobile/-/issues/406 to reduce the
amount of oddities we have from recreating the quick settings panel
during screen rotation.
2024-10-03 22:41:29 -07:00
Devin Lin
a0b9c2c569 quicksettings/screenrotation: Fix it by porting to changed API
It appears that the screen rotation DBus API was dropped with https://invent.kde.org/plasma/kscreen/-/merge_requests/237

Port to the new API.

Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/257
2023-11-05 15:09:33 -08:00
Devin Lin
f22b847009 quicksettings/screenrotation: Make available dbus call async 2023-02-09 23:00:45 -08:00
Luca Weiss
f8aeffa56d quicksettings/screenrotation: hide when not available
On devices where auto-rotate is not (yet) available, make sure not to
show an auto-rotate toggle with no functionality.
2023-02-10 06:28:59 +00:00
Devin Lin
35dec9d3d7 quicksettings/screenrotation: Move C++ out of ShellUtil into package 2022-03-17 00:33:13 -04:00