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