Mercurial > minori
diff src/gui/dialog/information.cc @ 250:c130f47f6f48
*: many many changes
e.g. the search page is actually implemented now!
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 04 Feb 2024 21:17:17 -0500 |
parents | 4d461ef7d424 |
children | b3549da699a6 |
line wrap: on
line diff
--- a/src/gui/dialog/information.cc Wed Jan 24 20:18:59 2024 -0500 +++ b/src/gui/dialog/information.cc Sun Feb 04 21:17:17 2024 -0500 @@ -30,6 +30,9 @@ /* TODO: Taiga disables rendering of the tab widget entirely when the anime is not part of a list, which sucks. Think of a better way to implement this later. */ void InformationDialog::SaveData(Anime::Anime& anime) { + if (!anime.IsInUserList()) + return; + anime.SetUserProgress(_progress); anime.SetUserScore(_score); anime.SetUserIsRewatching(_rewatching); @@ -98,7 +101,7 @@ tabbed_widget->addTab(main_information_widget, tr("Main information")); } - { + if (anime.IsInUserList()) { /* My list and settings */ QWidget* settings_widget = new QWidget(tabbed_widget); settings_widget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);