Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura/UI
diff options
context:
space:
mode:
authorKostas Karmas <konskarm@gmail.com>2020-04-29 12:38:36 +0300
committerKostas Karmas <konskarm@gmail.com>2020-04-29 12:38:36 +0300
commitd6f150a523296033fcbf298bf6f88845269c9138 (patch)
tree10fbea0ccf14c605aa23bf907cd0500d1d229d5b /cura/UI
parentb2382593ed67ef566ca03ae540c1a1500146a620 (diff)
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
Diffstat (limited to 'cura/UI')
-rw-r--r--cura/UI/AddPrinterPagesModel.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/cura/UI/AddPrinterPagesModel.py b/cura/UI/AddPrinterPagesModel.py
index a72b1a7729..b06f220374 100644
--- a/cura/UI/AddPrinterPagesModel.py
+++ b/cura/UI/AddPrinterPagesModel.py
@@ -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)