forked from qt-creator/qt-creator
GitLab: Allow browsing and cloning projects
Change-Id: I1cc877ea6b5a55ae7bdb8e7a529afeb08d09e0c0 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -294,6 +294,7 @@ void GitLabProjectSettingsWidget::updateEnabledStates()
|
||||
const bool isGitRepository = m_hostCB->count() > 0;
|
||||
const bool hasGitLabServers = m_linkedGitLabServer->count();
|
||||
const bool linked = m_projectSettings->isLinked();
|
||||
|
||||
m_linkedGitLabServer->setEnabled(isGitRepository && !linked);
|
||||
m_hostCB->setEnabled(isGitRepository && !linked);
|
||||
m_linkWithGitLab->setEnabled(isGitRepository && !linked && hasGitLabServers);
|
||||
|
||||
Reference in New Issue
Block a user