Mercurial > minori
comparison src/gui/dialog/settings/services.cc @ 120:275da698697d
config: template-ify INI
now it's... slightly less ugly :')
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 08 Nov 2023 18:13:37 -0500 |
parents | 2004b41d4a59 |
children | ff0061e75f0f |
comparison
equal
deleted
inserted
replaced
119:4eae379cb1ff | 120:275da698697d |
---|---|
85 | 85 |
86 { | 86 { |
87 /* The actual auth button */ | 87 /* The actual auth button */ |
88 QPushButton* auth_button = new QPushButton(auth_widget); | 88 QPushButton* auth_button = new QPushButton(auth_widget); |
89 connect(auth_button, &QPushButton::clicked, this, [] { Services::AniList::AuthorizeUser(); }); | 89 connect(auth_button, &QPushButton::clicked, this, [] { Services::AniList::AuthorizeUser(); }); |
90 auth_button->setText(session.config.anilist.auth_token.empty() ? tr("Authorize...") : tr("Re-authorize...")); | 90 auth_button->setText(session.config.auth.anilist.auth_token.empty() ? tr("Authorize...") : tr("Re-authorize...")); |
91 auth_layout->addWidget(auth_button); | 91 auth_layout->addWidget(auth_button); |
92 } | 92 } |
93 | 93 |
94 layout->addWidget(auth_widget); | 94 layout->addWidget(auth_widget); |
95 } | 95 } |