mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
fix: add update model after clear profile (#1674)
* fixed issue when ui was not getting update about clearing profile cache right after it * fixed the problem of not clearing the profile * refactored reload function in protolocolsModel * refactored the issue with signal connect in corecontroller
This commit is contained in:
@@ -814,6 +814,8 @@ void InstallController::clearCachedProfile(QSharedPointer<ServerController> serv
|
||||
m_clientManagementModel->revokeClient(containerConfig, container, serverCredentials, serverIndex, serverController);
|
||||
|
||||
emit cachedProfileCleared(tr("%1 cached profile cleared").arg(ContainerProps::containerHumanNames().value(container)));
|
||||
QJsonObject updatedConfig = m_settings->containerConfig(serverIndex, container);
|
||||
emit profileCleared(updatedConfig);
|
||||
}
|
||||
|
||||
QRegularExpression InstallController::ipAddressPortRegExp()
|
||||
|
||||
@@ -83,6 +83,8 @@ signals:
|
||||
|
||||
void noInstalledContainers();
|
||||
|
||||
void profileCleared(const QJsonObject &config);
|
||||
|
||||
private:
|
||||
void installServer(const DockerContainer container, const QMap<DockerContainer, QJsonObject> &installedContainers,
|
||||
const ServerCredentials &serverCredentials, const QSharedPointer<ServerController> &serverController,
|
||||
|
||||
Reference in New Issue
Block a user