mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
added server availability check after entering credentials
- moved the protocol self-selection button to the PageSetupWizardEasy page
This commit is contained in:
@@ -55,7 +55,7 @@ int LanguageModel::getCurrentLanguageIndex()
|
||||
}
|
||||
}
|
||||
|
||||
QString LanguageModel::getCurrentLanuageName()
|
||||
QString LanguageModel::getCurrentLanguageName()
|
||||
{
|
||||
return m_availableLanguages[getCurrentLanguageIndex()].name;
|
||||
}
|
||||
|
||||
@@ -43,13 +43,17 @@ public:
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
|
||||
Q_PROPERTY(QString currentLanguageName READ getCurrentLanguageName NOTIFY translationsUpdated)
|
||||
Q_PROPERTY(int currentLanguageIndex READ getCurrentLanguageIndex NOTIFY translationsUpdated)
|
||||
|
||||
public slots:
|
||||
void changeLanguage(const LanguageSettings::AvailableLanguageEnum language);
|
||||
int getCurrentLanguageIndex();
|
||||
QString getCurrentLanuageName();
|
||||
QString getCurrentLanguageName();
|
||||
|
||||
signals:
|
||||
void updateTranslations(const QLocale &locale);
|
||||
void translationsUpdated();
|
||||
|
||||
protected:
|
||||
QHash<int, QByteArray> roleNames() const override;
|
||||
|
||||
Reference in New Issue
Block a user