mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-22 18:26:39 +00:00
UserTitlesTab: display a notification after updating the user titles list.
This commit is contained in:
parent
65a7816f2e
commit
75ebd97413
2 changed files with 5 additions and 6 deletions
|
@ -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)."
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,12 +22,11 @@
|
||||||
#include <nxdt_utils.h>
|
#include <nxdt_utils.h>
|
||||||
#include <user_titles_tab.hpp>
|
#include <user_titles_tab.hpp>
|
||||||
|
|
||||||
namespace i18n = brls::i18n; /* For getStr(). */
|
using namespace brls::i18n::literals; /* For _i18n. */
|
||||||
using namespace i18n::literals; /* For _i18n. */
|
|
||||||
|
|
||||||
namespace nxdt::views
|
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. */
|
/* Populate list. */
|
||||||
this->PopulateList();
|
this->PopulateList();
|
||||||
|
@ -36,6 +35,7 @@ namespace nxdt::views
|
||||||
this->title_task_sub = this->title_task->RegisterListener([this](void) {
|
this->title_task_sub = this->title_task->RegisterListener([this](void) {
|
||||||
/* Update list. */
|
/* Update list. */
|
||||||
this->PopulateList();
|
this->PopulateList();
|
||||||
|
brls::Application::notify("user_titles_tab/notification"_i18n);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue