From f8aeffa56d5cdbb83a29b5e87842516bf640bb62 Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Tue, 4 Oct 2022 17:09:18 +0200 Subject: [PATCH] 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. --- .../screenrotation/dbus/org.kde.KScreen.xml | 7 +++++-- .../screenrotation/package/contents/ui/main.qml | 1 + quicksettings/screenrotation/screenrotationutil.cpp | 12 ++++++++++++ quicksettings/screenrotation/screenrotationutil.h | 3 +++ 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/quicksettings/screenrotation/dbus/org.kde.KScreen.xml b/quicksettings/screenrotation/dbus/org.kde.KScreen.xml index ac19b60e..e9c5979c 100644 --- a/quicksettings/screenrotation/dbus/org.kde.KScreen.xml +++ b/quicksettings/screenrotation/dbus/org.kde.KScreen.xml @@ -1,7 +1,7 @@ -