Commit 8d2f5f20 authored by con's avatar con
Browse files

Don't show VCS menus that are not enabled and can't create repos.

parent 92d05ed8
......@@ -512,7 +512,7 @@ bool VCSBasePlugin::enableMenuAction(ActionState as, QAction *menuAction) const
switch (as) {
case VCSBase::VCSBasePlugin::NoVCSEnabled: {
const bool supportsCreation = d->supportsRepositoryCreation();
menuAction->setVisible(true);
menuAction->setVisible(supportsCreation);
menuAction->setEnabled(supportsCreation);
return supportsCreation;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment