Mercurial > minori
diff src/gui/pages/seasons.cc @ 304:2115488eb302
*: add very early season searcher
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 13 May 2024 17:02:35 -0400 |
parents | b82841e76e79 |
children | 78929794e7d8 |
line wrap: on
line diff
--- a/src/gui/pages/seasons.cc Mon May 13 15:19:55 2024 -0400 +++ b/src/gui/pages/seasons.cc Mon May 13 17:02:35 2024 -0400 @@ -5,6 +5,7 @@ #include "core/strings.h" #include "gui/widgets/anime_button.h" #include "gui/translate/anime.h" +#include "services/services.h" #include <QDate> #include <QFrame> @@ -97,7 +98,12 @@ toolbar->addSeparator(); - { toolbar->addAction(QIcon(":/icons/16x16/arrow-circle-315.png"), tr("Refresh data")); } + { + toolbar->addAction(QIcon(":/icons/16x16/arrow-circle-315.png"), tr("Refresh data"), [this]{ + Services::GetSeason(Anime::SeriesSeason::Summer, 2011U); + SetSeason(Anime::SeriesSeason::Summer, 2011U); + }); + } toolbar->addSeparator(); @@ -185,5 +191,5 @@ full_layout->setSpacing(0); /* Do NOT move this up in this function, buttons HAS to be initialized */ - SetSeason(Anime::SeriesSeason::Summer, 2011); + SetSeason(Anime::SeriesSeason::Summer, 2011U); }