From 049eaf7df1dd388d560a84503b149d16d4b0ce5b Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sun, 6 Apr 2025 12:18:50 -0400 Subject: [PATCH] taskpanel: Fix rotate button showing with autorotate AutoRotatePolicy has another option "InTabletMode" which is still autorotate since we are always in tablet mode on mobile. Ensure that it is skipped when determining whether to show the manual rotation button. --- containments/taskpanel/taskpanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containments/taskpanel/taskpanel.cpp b/containments/taskpanel/taskpanel.cpp index e99d2448..61a4bbb1 100644 --- a/containments/taskpanel/taskpanel.cpp +++ b/containments/taskpanel/taskpanel.cpp @@ -129,7 +129,7 @@ void TaskPanel::updateShowRotationButton() // apparently it's possible to get nullptr outputs? continue; } - if (output->autoRotatePolicy() == KScreen::Output::AutoRotatePolicy::Always) { + if (output->autoRotatePolicy() != KScreen::Output::AutoRotatePolicy::Never) { // only check displays that have autorotate on continue; }