feat: add base amnezia trial support (#2366)

* feat: add base amnezia trial support

* feat: add external-trial
This commit is contained in:
vkamn 2026-03-24 09:29:51 +07:00 committed by GitHub
parent 40e39895c9
commit c57162c4cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 249 additions and 233 deletions

View file

@ -52,7 +52,9 @@ QVariant ApiAccountInfoModel::data(const QModelIndex &index, int role) const
}
case IsComponentVisibleRole: {
return m_accountInfoData.configType == apiDefs::ConfigType::AmneziaPremiumV2
|| m_accountInfoData.configType == apiDefs::ConfigType::ExternalPremium;
|| m_accountInfoData.configType == apiDefs::ConfigType::AmneziaTrialV2
|| m_accountInfoData.configType == apiDefs::ConfigType::ExternalPremium
|| m_accountInfoData.configType == apiDefs::ConfigType::ExternalTrial;
}
case HasExpiredWorkerRole: {
for (int i = 0; i < m_issuedConfigsInfo.size(); i++) {