mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
fix: clear cookies when click the Reset button
This commit is contained in:
parent
6cf909e34f
commit
bf03d375e0
@ -112,7 +112,7 @@ void GPClient::initSystemTrayIcon()
|
||||
connectAction = contextMenu->addAction(QIcon::fromTheme("preferences-system-network"), "Connect", this, &GPClient::doConnect);
|
||||
contextMenu->addMenu(gatewaySwitchMenu);
|
||||
contextMenu->addSeparator();
|
||||
clearAction = contextMenu->addAction(QIcon::fromTheme("edit-clear"), "Reset Settings", this, &GPClient::clearSettings);
|
||||
clearAction = contextMenu->addAction(QIcon::fromTheme("edit-clear"), "Reset", this, &GPClient::clearSettings);
|
||||
quitAction = contextMenu->addAction(QIcon::fromTheme("application-exit"), "Quit", this, &GPClient::quit);
|
||||
|
||||
systemTrayIcon->show();
|
||||
|
@ -7,6 +7,8 @@
|
||||
#include <QtNetwork/QSslConfiguration>
|
||||
#include <QtNetwork/QSslSocket>
|
||||
#include <plog/Log.h>
|
||||
#include <QWebEngineProfile>
|
||||
#include <QWebEngineCookieStore>
|
||||
|
||||
#include "gphelper.h"
|
||||
|
||||
@ -127,4 +129,6 @@ void gpclient::helper::settings::clear()
|
||||
_settings->remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
QWebEngineProfile::defaultProfile()->cookieStore()->deleteAllCookies();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user