moved passphraseCallback and passphraseDialog to startPage
- made some methods of the servercontroller class private - returned a call to the checkSshConnection() function
This commit is contained in:
parent
4aba34c18b
commit
1aa859b10d
9 changed files with 66 additions and 86 deletions
|
@ -150,16 +150,6 @@ void UiLogic::initalizeUiLogic()
|
|||
connect(m_notificationHandler, &NotificationHandler::connectRequested, pageLogic<VpnLogic>(), &VpnLogic::onConnect);
|
||||
connect(m_notificationHandler, &NotificationHandler::disconnectRequested, pageLogic<VpnLogic>(), &VpnLogic::onDisconnect);
|
||||
|
||||
auto passphraseCallback = [this]() {
|
||||
emit showPassphraseRequestMessage();
|
||||
QEventLoop loop;
|
||||
QObject::connect(this, &UiLogic::passphraseDialogClosed, &loop, &QEventLoop::quit);
|
||||
loop.exec();
|
||||
|
||||
return m_privateKeyPassphrase;
|
||||
};
|
||||
m_serverController->setPassphraseCallback(passphraseCallback);
|
||||
|
||||
if (m_settings->serversCount() > 0) {
|
||||
if (m_settings->defaultServerIndex() < 0) m_settings->setDefaultServer(0);
|
||||
emit goToPage(Page::Vpn, true, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue