mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
refactor: deactivate api config before remove (#2569)
Co-authored-by: vkamn <vk@amnezia.org>
This commit is contained in:
@@ -406,6 +406,15 @@ void SubscriptionUiController::removeApiConfig(const QString &serverId)
|
||||
emit apiConfigRemoved(tr("Api config removed"));
|
||||
}
|
||||
|
||||
void SubscriptionUiController::removeServer(const QString &serverId)
|
||||
{
|
||||
const QString serverName = m_serversController->notificationDisplayName(serverId);
|
||||
if (!m_subscriptionController->removeServer(serverId)) {
|
||||
return;
|
||||
}
|
||||
emit apiServerRemoved(tr("Server '%1' was removed").arg(serverName));
|
||||
}
|
||||
|
||||
|
||||
QList<QString> SubscriptionUiController::getQrCodes()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user