aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets
diff options
context:
space:
mode:
authorseth <getchoo@tuta.io>2023-06-20 19:56:38 -0400
committerGitHub <noreply@github.com>2023-06-20 19:56:38 -0400
commitca659136e2dc5f987bb5646eff0d8a7dd1b90774 (patch)
treeabb3fcbe7eb19025299d54418f0527bd6416e6d1 /launcher/ui/widgets
parentf1a6dc5332e0cecf07650d3611c780f013bc495f (diff)
parent3ee0fec7298d467d5b8b48a5144794f58bc2ce28 (diff)
downloadPrismLauncher-ca659136e2dc5f987bb5646eff0d8a7dd1b90774.tar.gz
PrismLauncher-ca659136e2dc5f987bb5646eff0d8a7dd1b90774.tar.bz2
PrismLauncher-ca659136e2dc5f987bb5646eff0d8a7dd1b90774.zip
Merge pull request #1119 from Trial97/mods_txt
Added dynamic page extra info
Diffstat (limited to 'launcher/ui/widgets')
-rw-r--r--launcher/ui/widgets/PageContainer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/launcher/ui/widgets/PageContainer.cpp b/launcher/ui/widgets/PageContainer.cpp
index 38a22897..34df42ec 100644
--- a/launcher/ui/widgets/PageContainer.cpp
+++ b/launcher/ui/widgets/PageContainer.cpp
@@ -93,6 +93,10 @@ PageContainer::PageContainer(BasePageProvider *pageProvider, QString defaultId,
page->listIndex = counter;
page->setParentContainer(this);
counter++;
+ page->updateExtraInfo = [this](QString info) {
+ if (m_currentPage)
+ m_header->setText(m_currentPage->displayName() + info);
+ };
}
m_model->setPages(pages);