mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Rearrange the AddPrinterPagesModel and mark "Add Cloud Printer" page as final
In order to avoid cases where the "Machine actions" page would lead to the "add cloud printer" page when pressing next, the AddPrinterPagesModel was rearranged and the "add cloud printer" page was marked as final. CURA-7022
This commit is contained in:
parent
b2382593ed
commit
d6f150a523
1 changed files with 5 additions and 3 deletions
|
@ -21,13 +21,15 @@ class AddPrinterPagesModel(WelcomePagesModel):
|
|||
"page_url": self._getBuiltinWelcomePagePath("AddPrinterByIpContent.qml"),
|
||||
"next_page_id": "machine_actions",
|
||||
})
|
||||
self._pages.append({"id": "add_cloud_printers",
|
||||
"page_url": self._getBuiltinWelcomePagePath("AddCloudPrintersView.qml"),
|
||||
"is_final_page": True,
|
||||
"next_page_button_text": self._catalog.i18nc("@action:button", "Finish"),
|
||||
})
|
||||
self._pages.append({"id": "machine_actions",
|
||||
"page_url": self._getBuiltinWelcomePagePath("FirstStartMachineActionsContent.qml"),
|
||||
"should_show_function": self.shouldShowMachineActions,
|
||||
})
|
||||
self._pages.append({"id": "add_cloud_printers",
|
||||
"page_url": self._getBuiltinWelcomePagePath("AddCloudPrintersView.qml"),
|
||||
})
|
||||
self.setItems(self._pages)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue