Compare commits

..

1 Commits

Author SHA1 Message Date
yp
5327564ad1 fix: skip save page when export fails 2026-08-06 21:46:13 +03:00
4 changed files with 4452 additions and 479 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -272,7 +272,7 @@ bool SubscriptionUiController::restoreServiceFromAppStore()
return false;
}
emit installServerFromApiFinished(tr("Subscription restored successfully"));
emit installServerFromApiFinished(tr("Subscription restored successfully."));
if (result.duplicateCount > 0) {
qInfo().noquote() << "[IAP] Skipped" << result.duplicateCount
<< "duplicate restored transactions for original transaction IDs already processed";
@@ -469,7 +469,7 @@ bool SubscriptionUiController::importTrialFromGateway(const QString &email)
if (errorCode != ErrorCode::NoError) {
if (errorCode == ErrorCode::ApiTrialAlreadyUsedError) {
emit trialEmailError(
tr("This email address has already been used to activate a trial. Like the service? Upgrade to Premium"));
tr("This email address has already been used to activate a trial. If you like the service, you can upgrade to Premium"));
} else {
emit errorOccurred(errorCode);
}
@@ -648,7 +648,7 @@ QStringList SubscriptionUiController::availableProtocols(const QString &serverId
void SubscriptionUiController::removeApiConfig(const QString &serverId)
{
m_subscriptionController->removeApiConfig(serverId);
emit apiConfigRemoved(tr("API config removed"));
emit apiConfigRemoved(tr("Api config removed"));
}
void SubscriptionUiController::removeServer(const QString &serverId)

View File

@@ -84,7 +84,11 @@ PageType {
}
PageController.showBusyIndicator(false)
if (!ExportController.config || ExportController.config.length === 0) {
return
}
var headerText = qsTr("Connection to ") + serverSelector.text
var configContentHeaderText = qsTr("File with connection settings to ") + serverSelector.text
PageController.goToShareConnectionPage(headerText, configContentHeaderText, configCaption, configExtension, configFileName)

View File

@@ -159,7 +159,11 @@ PageType {
}
PageController.showBusyIndicator(false)
if (!ExportController.config || ExportController.config.length === 0) {
return
}
PageController.goToShareConnectionPage(listView.headerText, listView.configContentHeaderText, "", ".vpn", "amnezia_config")
}
}