fix: bug when saving after canceling the save action (#2568)

Co-authored-by: vkamn <vk@amnezia.org>
This commit is contained in:
yp
2026-05-15 09:57:44 +03:00
committed by GitHub
parent d0a1af0381
commit cb48667b91
10 changed files with 60 additions and 23 deletions
@@ -192,9 +192,6 @@ PageType {
if (fileName !== "") {
PageController.showBusyIndicator(true)
let result = SubscriptionUiController.exportNativeConfig(ServersUiController.getServerId(ServersUiController.processedServerIndex), countryCode, fileName)
if (result) {
SubscriptionUiController.getAccountInfo(ServersUiController.getServerId(ServersUiController.processedServerIndex), true)
}
PageController.showBusyIndicator(false)
if (result) {
@@ -119,8 +119,11 @@ PageType {
if (fileName !== "") {
PageController.showBusyIndicator(true)
SubscriptionUiController.exportVpnKey(ServersUiController.getServerId(ServersUiController.processedServerIndex), fileName)
let ok = SubscriptionUiController.exportVpnKey(ServersUiController.getServerId(ServersUiController.processedServerIndex), fileName)
PageController.showBusyIndicator(false)
if (ok) {
PageController.showNotificationMessage(qsTr("Config file saved"))
}
}
}
}