forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/11.0'
Change-Id: Ib67c8ecb1865ee31ca6485c9287039ba877c68cd
This commit is contained in:
@@ -107,14 +107,19 @@ void AuthWidget::updateClient(const FilePath &nodeJs, const FilePath &agent)
|
||||
m_client = nullptr;
|
||||
setState(Tr::tr("Sign In"), false);
|
||||
m_button->setEnabled(false);
|
||||
if (!nodeJs.isExecutableFile() || !agent.exists()) {
|
||||
if (!nodeJs.isExecutableFile() || !agent.exists())
|
||||
return;
|
||||
}
|
||||
|
||||
setState(Tr::tr("Sign In"), true);
|
||||
|
||||
m_client = new CopilotClient(nodeJs, agent);
|
||||
connect(m_client, &Client::initialized, this, &AuthWidget::checkStatus);
|
||||
connect(m_client, &QObject::destroyed, this, [destroyedClient = m_client, this]() {
|
||||
if (destroyedClient != m_client)
|
||||
return;
|
||||
m_client = nullptr;
|
||||
m_progressIndicator->hide();
|
||||
});
|
||||
}
|
||||
|
||||
void AuthWidget::signIn()
|
||||
|
||||
Reference in New Issue
Block a user