mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Fix parsing of Gateways and Priority Rules (#35)
* Fix gateways and priority rules parsing * Removing comment with dead code Co-authored-by: Raphael Sant'Anna <raphael.santanna@exame.com>
This commit is contained in:
committed by
GitHub
parent
d91fad089f
commit
c14a6ad1d2
@@ -69,7 +69,7 @@ void GPClient::initSystemTrayIcon()
|
||||
connect(systemTrayIcon, &QSystemTrayIcon::activated, this, &GPClient::onSystemTrayActivated);
|
||||
connect(gatewaySwitchMenu, &QMenu::triggered, this, &GPClient::onGatewayChanged);
|
||||
|
||||
openAction = contextMenu->addAction(QIcon::fromTheme("window-new"), "Open", this, &GPClient::activiate);
|
||||
openAction = contextMenu->addAction(QIcon::fromTheme("window-new"), "Open", this, &GPClient::activate);
|
||||
connectAction = contextMenu->addAction(QIcon::fromTheme("preferences-system-network"), "Connect", this, &GPClient::doConnect);
|
||||
contextMenu->addMenu(gatewaySwitchMenu);
|
||||
contextMenu->addSeparator();
|
||||
@@ -167,7 +167,7 @@ void GPClient::onSystemTrayActivated(QSystemTrayIcon::ActivationReason reason)
|
||||
switch (reason) {
|
||||
case QSystemTrayIcon::Trigger:
|
||||
case QSystemTrayIcon::DoubleClick:
|
||||
this->activiate();
|
||||
this->activate();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -209,7 +209,7 @@ void GPClient::doConnect()
|
||||
|
||||
// Display the main window if portal is empty
|
||||
if (portal.isEmpty()) {
|
||||
activiate();
|
||||
activate();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -351,7 +351,7 @@ void GPClient::onGatewayFail(const QString &msg)
|
||||
updateConnectionStatus(VpnStatus::disconnected);
|
||||
}
|
||||
|
||||
void GPClient::activiate()
|
||||
void GPClient::activate()
|
||||
{
|
||||
activateWindow();
|
||||
showNormal();
|
||||
|
Reference in New Issue
Block a user