mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
update: files encrypt on export and files data decrypt on import
This commit is contained in:
@@ -117,6 +117,8 @@ bool SubscriptionUiController::exportNativeConfig(const QString &serverId, const
|
||||
}
|
||||
|
||||
const bool saved = SystemController::saveFile(fileName, nativeConfig);
|
||||
if (m_settingsController->isFileEncryptionEnabled())
|
||||
SystemController::encryptFile(fileName, m_settingsController->getPassword(), m_settingsController->getHint());
|
||||
getAccountInfo(serverId, true);
|
||||
return saved;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user