mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:59:00 +08:00
Update preference dialog to the changed API
This commit is contained in:
parent
03748ca19a
commit
03ad005462
@ -465,14 +465,27 @@ UM.MainWindow
|
|||||||
{
|
{
|
||||||
//; Remove & re-add the general page as we want to use our own instead of uranium standard.
|
//; Remove & re-add the general page as we want to use our own instead of uranium standard.
|
||||||
removePage(0);
|
removePage(0);
|
||||||
insertPage(0, catalog.i18nc("@title:tab","General") , "" , Qt.resolvedUrl("./GeneralPage.qml"));
|
insertPage(0, catalog.i18nc("@title:tab","General"), generalPage);
|
||||||
|
|
||||||
//: View preferences page title
|
//: View preferences page title
|
||||||
insertPage(1, catalog.i18nc("@title:tab","View"), "view-preview", Qt.resolvedUrl("./ViewPage.qml"));
|
insertPage(1, catalog.i18nc("@title:tab","View"), viewPage);
|
||||||
|
|
||||||
//Force refresh
|
//Force refresh
|
||||||
setPage(0)
|
setPage(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
visible: false
|
||||||
|
GeneralPage
|
||||||
|
{
|
||||||
|
id: generalPage
|
||||||
|
}
|
||||||
|
|
||||||
|
ViewPage
|
||||||
|
{
|
||||||
|
id: viewPage
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Actions
|
Actions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user