mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-10 15:39:01 +08:00
Fix the welcome dialog not closing when cloud printers detected
The welcome dialog was not closing because when pressing the "Sign up" button in the cloud page, a signal is emitted that is forcing the welcome wizard to move to the next page. Therefore the currentPageIdx was detected as cloud_page_idx+1. This commit fixes the check by checking whether the welcome dialog is in the page after the Cloud page. CURA-7019
This commit is contained in:
parent
1030945c5d
commit
3d26b6886f
@ -104,9 +104,9 @@ class CloudOutputDeviceManager:
|
||||
# found, the welcome screen will close. This way we avoid prompting the user to add printers if he/she already
|
||||
# has cloud printers
|
||||
welcome_pages_model = CuraApplication.getInstance().getWelcomePagesModel()
|
||||
cloud_page_idx = welcome_pages_model.getPageIndexById("cloud")
|
||||
if welcome_pages_model.currentPageIndex == cloud_page_idx and online_clusters:
|
||||
CuraApplication.getWelcomePagesModel().atEnd()
|
||||
cloud_page_idx = welcome_pages_model.getPageIndexById("cloud") + 1
|
||||
if welcome_pages_model.currentPageIndex == cloud_page_idx and len(online_clusters) > 0:
|
||||
welcome_pages_model.atEnd()
|
||||
for device_id, cluster_data in online_clusters.items():
|
||||
if device_id not in self._remote_clusters:
|
||||
new_clusters.append(cluster_data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user