From 5b429b49d1e51b7bfbc7eef62555fa65b58b2598 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sun, 5 Nov 2023 18:56:50 -0800 Subject: [PATCH] quicksettings/screenrotation: Ensure save Ensures that https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/390 saves the setting --- quicksettings/screenrotation/screenrotationutil.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quicksettings/screenrotation/screenrotationutil.cpp b/quicksettings/screenrotation/screenrotationutil.cpp index 2f6c9268..a62ed0ae 100644 --- a/quicksettings/screenrotation/screenrotationutil.cpp +++ b/quicksettings/screenrotation/screenrotationutil.cpp @@ -59,6 +59,9 @@ void ScreenRotationUtil::setAutoScreenRotationEnabled(bool value) } } + auto setop = new KScreen::SetConfigOperation(m_config, this); + setop->exec(); + Q_EMIT autoScreenRotationEnabledChanged(); }