Fix plugin menu visual checked problem

It is not unchecking the "Show SSH Manager" when closing the
dockWidget with the Close icon.

It is not checking the the box when the dockWidget opens with the
konsole.
wilder
Carlos Alves 5 years ago committed by Kurt Hindenburg
parent 7c0198f9be
commit 42320595d8
  1. 3
      src/plugins/SSHManager/sshmanagerplugin.cpp

@ -67,10 +67,11 @@ QList<QAction *> SSHManagerPlugin::menuBarActions(Konsole::MainWindow* mainWindo
QAction *toggleVisibilityAction = new QAction(i18n("Show SSH Manager"), mainWindow);
toggleVisibilityAction->setCheckable(true);
toggleVisibilityAction->setChecked(false);
connect(toggleVisibilityAction, &QAction::triggered,
d->dockForWindow[mainWindow], &QDockWidget::setVisible);
connect(d->dockForWindow[mainWindow], &QDockWidget::visibilityChanged,
toggleVisibilityAction, &QAction::setChecked);
return {toggleVisibilityAction};
}

Loading…
Cancel
Save