fix: delete premium V2 migration link from Free config Settings (#1671)
* delete premium V2 update link from Free config Settings * Add debug logs * Add property for checking if server config is premium * remove debug logs
This commit is contained in:
parent
979ab42c5a
commit
f0626e2eca
3 changed files with 14 additions and 4 deletions
|
|
@ -8,6 +8,8 @@
|
|||
#include <AmneziaVPN-Swift.h>
|
||||
#endif
|
||||
|
||||
#include "core/api/apiUtils.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
namespace configKey
|
||||
|
|
@ -427,7 +429,7 @@ void ServersModel::updateDefaultServerContainersModel()
|
|||
emit defaultServerContainersUpdated(containers);
|
||||
}
|
||||
|
||||
QJsonObject ServersModel::getServerConfig(const int serverIndex)
|
||||
QJsonObject ServersModel::getServerConfig(const int serverIndex) const
|
||||
{
|
||||
return m_servers.at(serverIndex).toObject();
|
||||
}
|
||||
|
|
@ -814,3 +816,8 @@ const QString ServersModel::getDefaultServerImagePathCollapsed()
|
|||
}
|
||||
return QString("qrc:/countriesFlags/images/flagKit/%1.svg").arg(countryCode.toUpper());
|
||||
}
|
||||
|
||||
bool ServersModel::processedServerIsPremium() const
|
||||
{
|
||||
return apiUtils::isPremiumServer(getServerConfig(m_processedServerIndex));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue