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.
This commit is contained in:
Devin Lin 2025-04-06 12:18:50 -04:00
parent ebdb8bd848
commit 049eaf7df1

View file

@ -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;
}