mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-28 23:04:34 +08:00
Set initial page through currentPage after initialising
This has a delayed effect through a signal being emitted. That is necessary because the pagesList itself is also updated delayed, so at this time page 0 doesn't exist yet. Contributes to issue CURA-7501.
This commit is contained in:
parent
a2d2043b3c
commit
95f1b11c45
@ -466,15 +466,13 @@ UM.MainWindow
|
|||||||
insertPage(3, catalog.i18nc("@title:tab", "Materials"), Qt.resolvedUrl("Preferences/Materials/MaterialsPage.qml"));
|
insertPage(3, catalog.i18nc("@title:tab", "Materials"), Qt.resolvedUrl("Preferences/Materials/MaterialsPage.qml"));
|
||||||
|
|
||||||
insertPage(4, catalog.i18nc("@title:tab", "Profiles"), Qt.resolvedUrl("Preferences/ProfilesPage.qml"));
|
insertPage(4, catalog.i18nc("@title:tab", "Profiles"), Qt.resolvedUrl("Preferences/ProfilesPage.qml"));
|
||||||
|
currentPage = 0;
|
||||||
//Force refresh
|
|
||||||
setPage(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onVisibleChanged:
|
onVisibleChanged:
|
||||||
{
|
{
|
||||||
// When the dialog closes, switch to the General page.
|
// When the dialog closes, switch to the General page.
|
||||||
// This prevents us from having a heavy page like Setting Visiblity active in the background.
|
// This prevents us from having a heavy page like Setting Visibility active in the background.
|
||||||
setPage(0);
|
setPage(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user