1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-12-22 16:42:11 +00:00

UserTitlesTab: display a notification after updating the user titles list.

This commit is contained in:
Pablo Curiel 2021-06-20 23:00:39 -04:00
parent 65a7816f2e
commit 75ebd97413
2 changed files with 5 additions and 6 deletions

View file

@ -1,5 +1,4 @@
{
"error_frame": {
"no_titles_available": "No user titles available."
}
"no_titles_available": "No user titles available.",
"notification": "User titles tab updated (gamecard status change detected)."
}

View file

@ -22,12 +22,11 @@
#include <nxdt_utils.h>
#include <user_titles_tab.hpp>
namespace i18n = brls::i18n; /* For getStr(). */
using namespace i18n::literals; /* For _i18n. */
using namespace brls::i18n::literals; /* For _i18n. */
namespace nxdt::views
{
UserTitlesTab::UserTitlesTab(nxdt::tasks::TitleTask *title_task) : LayeredErrorFrame("user_titles_tab/error_frame/no_titles_available"_i18n), title_task(title_task)
UserTitlesTab::UserTitlesTab(nxdt::tasks::TitleTask *title_task) : LayeredErrorFrame("user_titles_tab/no_titles_available"_i18n), title_task(title_task)
{
/* Populate list. */
this->PopulateList();
@ -36,6 +35,7 @@ namespace nxdt::views
this->title_task_sub = this->title_task->RegisterListener([this](void) {
/* Update list. */
this->PopulateList();
brls::Application::notify("user_titles_tab/notification"_i18n);
});
}