mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
ebdb8bd848
commit
049eaf7df1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue