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
@@ -98,8 +98,7 @@ bool SubscriptionUiController::exportVpnKey(const QString &serverId, const QStri
return false;
}
SystemController::saveFile(fileName, m_vpnKey);
return true;
return SystemController::saveFile(fileName, m_vpnKey);
}
@@ -117,8 +116,9 @@ bool SubscriptionUiController::exportNativeConfig(const QString &serverId, const
return false;
}
SystemController::saveFile(fileName, nativeConfig);
return true;
const bool saved = SystemController::saveFile(fileName, nativeConfig);
getAccountInfo(serverIndex, true);
return saved;
}