some fixes

This commit is contained in:
MrMirDan
2026-05-19 16:22:22 +03:00
parent 798d51de34
commit 14ee66cc58
3 changed files with 2 additions and 4 deletions
@@ -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)
}
}