Skip to content

Commit

Permalink
Merge pull request #376 from jmlich/action-to-battery-page
Browse files Browse the repository at this point in the history
[kirigami] There should be title from BatteryPage instead of 'Accept'
  • Loading branch information
piggz committed Jun 2, 2024
2 parents a185fdc + 3be597f commit db353fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/qml/components/platform.kirigami/PageListPL.qml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ Kirigami.ScrollablePage {
enabled: page.canNavigateForward === true
icon.name: page.acceptIconName
visible: !page.hideAcceptButton && (page.isDialog || app.pages.hasAttached(page))
text: app.tr("Accept")
text: "" + (page.isDialog || app.pages.nextPage() == undefined
? app.tr("Accept")
: app.pages.nextPage().title)
onTriggered: {
if (acceptCallback) acceptCallback();
else app.pages.navigateForward();
Expand Down

0 comments on commit db353fe

Please sign in to comment.