mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
some fixes
This commit is contained in:
@@ -73,8 +73,6 @@ void ExportUiController::exportConfig(const QString &fileName)
|
||||
if (!SystemController::saveFile(fileName, m_config)) {
|
||||
qInfo() << "ExportUiController::exportConfig: save or share was cancelled or failed";
|
||||
}
|
||||
if (m_settingsController->isFileEncryptionEnabled())
|
||||
SystemController::encryptFile(fileName, m_settingsController->getPassword(), m_settingsController->getHint());
|
||||
}
|
||||
|
||||
void ExportUiController::updateClientManagementModel(const QString &serverId, int containerIndex)
|
||||
|
||||
@@ -135,8 +135,6 @@ signals:
|
||||
|
||||
void loggingDisableByWatcher();
|
||||
|
||||
void fileEncryptionStateChanged();
|
||||
|
||||
void appLanguageChanged(const LanguageSettings::AvailableLanguageEnum language);
|
||||
void resetLanguageToSystem();
|
||||
|
||||
|
||||
@@ -108,6 +108,8 @@ PageType {
|
||||
if (fileName !== "") {
|
||||
PageController.showBusyIndicator(true)
|
||||
ExportController.exportConfig(fileName)
|
||||
if (SettingsController.isFileEncryptionEnabled())
|
||||
SystemController.encryptFile(filename, SettingsController.getPassword(), SettingsController.getHint())
|
||||
PageController.showBusyIndicator(false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user