mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Move page index logic into WelcomePagesModel
This commit is contained in:
parent
d52f9600b1
commit
92d95a1c00
7 changed files with 122 additions and 62 deletions
|
@ -33,6 +33,7 @@ Item
|
|||
{
|
||||
if (visible)
|
||||
{
|
||||
// Reset the action to start from the beginning when it is shown.
|
||||
currentActionIndex = 0
|
||||
if (!hasActions)
|
||||
{
|
||||
|
@ -48,7 +49,7 @@ Item
|
|||
anchors.topMargin: UM.Theme.getSize("welcome_pages_default_margin").height
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
text: currentActionItem.title
|
||||
text: currentActionItem == null ? "" : currentActionItem.title
|
||||
color: UM.Theme.getColor("primary_button")
|
||||
font: UM.Theme.getFont("large_bold")
|
||||
renderType: Text.NativeRendering
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue