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:
parent
80b7ed62da
commit
0a7db79e7c
1 changed files with 0 additions and 1 deletions
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue