diff src/gui/dialog/settings/services.cc @ 232:ff0061e75f0f

theme: add OS detection with glib
author Paper <mrpapersonic@gmail.com>
date Sat, 13 Jan 2024 11:06:16 -0500
parents 275da698697d
children 862d0d8619f6
line wrap: on
line diff
--- a/src/gui/dialog/settings/services.cc	Sat Jan 13 09:43:41 2024 -0500
+++ b/src/gui/dialog/settings/services.cc	Sat Jan 13 11:06:16 2024 -0500
@@ -66,25 +66,11 @@
 		QVBoxLayout* layout = new QVBoxLayout(group_box);
 
 		{
-			QLabel* username_entry_label = new QLabel(tr("Username: (not your email address)"), group_box);
-			layout->addWidget(username_entry_label);
-		}
-
-		{
 			/* Authorization */
 			QWidget* auth_widget = new QWidget(group_box);
 			QHBoxLayout* auth_layout = new QHBoxLayout(auth_widget);
 
 			{
-				/* Username: this literally never gets used btw */
-				QLineEdit* username_entry = new QLineEdit(username, auth_widget);
-				connect(username_entry, &QLineEdit::editingFinished, this,
-				        [this, username_entry] { username = username_entry->text(); });
-				auth_layout->addWidget(username_entry);
-			}
-
-			{
-				/* The actual auth button */
 				QPushButton* auth_button = new QPushButton(auth_widget);
 				connect(auth_button, &QPushButton::clicked, this, [] { Services::AniList::AuthorizeUser(); });
 				auth_button->setText(session.config.auth.anilist.auth_token.empty() ? tr("Authorize...") : tr("Re-authorize..."));
@@ -113,12 +99,10 @@
 
 void SettingsPageServices::SaveInfo() {
 	// see services/anilist.cc for why this is commented out
-	// session.config.anilist.username = Strings::ToUtf8String(username);
 	session.config.service = service;
 }
 
 SettingsPageServices::SettingsPageServices(QWidget* parent) : SettingsPage(parent, tr("Services")) {
-	// username = QString::fromUtf8(session.config.anilist.username.c_str());
 	service = session.config.service;
 	AddTab(CreateMainPage(), tr("Main"));
 	AddTab(CreateAniListPage(), tr("AniList"));