overview: Do not trigger the toggle action twice

It's already connected as it's created by EffectTogglableState.

BUG: 470603
This commit is contained in:
Aleix Pol 2023-06-10 02:36:23 +02:00
parent 80b7ed62da
commit 0a7db79e7c

View file

@ -43,7 +43,6 @@ OverviewEffect::OverviewEffect()
const QKeySequence defaultToggleShortcut = Qt::META | Qt::Key_W;
auto toggleAction = m_state->toggleAction();
connect(toggleAction, &QAction::triggered, m_state, &EffectTogglableState::toggle);
toggleAction->setObjectName(QStringLiteral("Overview"));
toggleAction->setText(i18n("Toggle Overview"));
KGlobalAccel::self()->setDefaultShortcut(toggleAction, {defaultToggleShortcut});