This commit is contained in:
Martin Rotter 2023-08-24 06:41:34 +02:00
parent d8d9efa67a
commit f84973dfcd
2 changed files with 12 additions and 2 deletions

View File

@ -275,6 +275,16 @@ version by clicking this popup notification.</source>
<source>No authentication</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/librssguard/services/abstract/gui/authenticationdetails.cpp" line="19"/>
<source>HTTP Basic</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/librssguard/services/abstract/gui/authenticationdetails.cpp" line="22"/>
<source>Token</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/librssguard/services/abstract/gui/authenticationdetails.cpp" line="53"/>
<source>Username/token is ok or it is not needed.</source>

View File

@ -16,10 +16,10 @@ AuthenticationDetails::AuthenticationDetails(bool only_basic, QWidget* parent) :
m_cbAuthType->addItem(tr("No authentication"),
QVariant::fromValue(NetworkFactory::NetworkAuthentication::NoAuthentication));
m_cbAuthType->addItem(QSL("HTTP Basic"), QVariant::fromValue(NetworkFactory::NetworkAuthentication::Basic));
m_cbAuthType->addItem(tr("HTTP Basic"), QVariant::fromValue(NetworkFactory::NetworkAuthentication::Basic));
if (!only_basic) {
m_cbAuthType->addItem(QSL("Token"), QVariant::fromValue(NetworkFactory::NetworkAuthentication::Token));
m_cbAuthType->addItem(tr("Token"), QVariant::fromValue(NetworkFactory::NetworkAuthentication::Token));
}
connect(m_txtUsername->lineEdit(), &BaseLineEdit::textChanged, this, &AuthenticationDetails::onUsernameChanged);