Mercurial > minori
comparison src/gui/dialog/settings/services.cpp @ 10:4b198a111713
Update
things actually compile now btw
qttest wants to fuck over the model but that might be my fault so /shrug
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 16 Sep 2023 02:06:01 -0400 |
parents | 5c0397762b53 |
children | fc1bf97c528b |
comparison
equal
deleted
inserted
replaced
9:5c0397762b53 | 10:4b198a111713 |
---|---|
52 QLineEdit* username_entry = new QLineEdit(username, auth_widget); | 52 QLineEdit* username_entry = new QLineEdit(username, auth_widget); |
53 connect(username_entry, &QLineEdit::editingFinished, this, | 53 connect(username_entry, &QLineEdit::editingFinished, this, |
54 [this, username_entry] { username = username_entry->text(); }); | 54 [this, username_entry] { username = username_entry->text(); }); |
55 | 55 |
56 QPushButton* auth_button = new QPushButton(auth_widget); | 56 QPushButton* auth_button = new QPushButton(auth_widget); |
57 connect(auth_button, &QPushButton::clicked, this, [] { AniList::Authorize(); }); | 57 connect(auth_button, &QPushButton::clicked, this, [] { Services::AniList::AuthorizeUser(); }); |
58 auth_button->setText(session.config.anilist.auth_token.empty() ? tr("Authorize...") : tr("Re-authorize...")); | 58 auth_button->setText(session.config.anilist.auth_token.empty() ? tr("Authorize...") : tr("Re-authorize...")); |
59 | 59 |
60 QHBoxLayout* auth_layout = new QHBoxLayout; | 60 QHBoxLayout* auth_layout = new QHBoxLayout; |
61 auth_layout->addWidget(username_entry); | 61 auth_layout->addWidget(username_entry); |
62 auth_layout->addWidget(auth_button); | 62 auth_layout->addWidget(auth_button); |