Browse Source

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
Kostas Karmas 4 years ago
parent
commit
d6f150a523
1 changed files with 5 additions and 3 deletions
  1. 5 3
      cura/UI/AddPrinterPagesModel.py

+ 5 - 3
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)