mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 15:45:42 +08:00
Ref T659, login dialog and connected signal/slots with main GUI
This commit is contained in:
@@ -254,6 +254,7 @@ void SwiftGuiStd::loginRequested()
|
||||
if (!connected && shift)
|
||||
{
|
||||
if (!m_loginDialog) { m_loginDialog.reset(new CLoginDialog(this)); }
|
||||
connect(m_loginDialog.data(), &CLoginDialog::requestNetworkSettings, this, &SwiftGuiStd::displayNetworkSettings);
|
||||
m_loginDialog->show();
|
||||
}
|
||||
else
|
||||
@@ -520,6 +521,13 @@ void SwiftGuiStd::displayLog()
|
||||
ui->comp_MainInfoArea->displayLog();
|
||||
}
|
||||
|
||||
void SwiftGuiStd::displayNetworkSettings()
|
||||
{
|
||||
if (!sApp || sApp->isShuttingDown()) { return; }
|
||||
this->setMainPageInfoArea(CMainInfoAreaComponent::InfoAreaSettings);
|
||||
ui->comp_MainInfoArea->getSettingsComponent()->setTab(CSettingsComponent::SettingTabServers);
|
||||
}
|
||||
|
||||
void SwiftGuiStd::onPttChanged(bool enabled)
|
||||
{
|
||||
if (!sGui || !sGui->getIContextAudio()) { return; }
|
||||
|
||||
Reference in New Issue
Block a user