mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
* feat: added 'clear site list' button (#1747) * chore: rename 'Export/Import Sites' to 'Additional options' --------- Co-authored-by: MrMirDan <58086007+MrMirDan@users.noreply.github.com>
This commit is contained in:
@@ -83,6 +83,16 @@ void SitesModel::removeSite(QModelIndex index)
|
||||
endRemoveRows();
|
||||
}
|
||||
|
||||
void SitesModel::removeSites()
|
||||
{
|
||||
beginResetModel();
|
||||
|
||||
m_settings->removeAllVpnSites(m_currentRouteMode);
|
||||
fillSites();
|
||||
|
||||
endResetModel();
|
||||
}
|
||||
|
||||
int SitesModel::getRouteMode()
|
||||
{
|
||||
return m_currentRouteMode;
|
||||
|
||||
@@ -28,6 +28,7 @@ public slots:
|
||||
bool addSite(const QString &hostname, const QString &ip);
|
||||
void addSites(const QMap<QString, QString> &sites, bool replaceExisting);
|
||||
void removeSite(QModelIndex index);
|
||||
void removeSites();
|
||||
|
||||
int getRouteMode();
|
||||
void setRouteMode(int routeMode);
|
||||
|
||||
Reference in New Issue
Block a user