Merge branch 'main' into CURA-7647-proof-of-concept

This commit is contained in:
Saumya Jain 2023-12-22 10:04:54 +01:00 committed by GitHub
commit 13540c3ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1837,8 +1837,11 @@ class CuraApplication(QtApplication):
self.readLocalFile(QUrl.fromLocalFile(tmp.name), add_to_recent_files=False) self.readLocalFile(QUrl.fromLocalFile(tmp.name), add_to_recent_files=False)
def on_error(): def on_error(*args, **kwargs):
Logger.log("w", "Could not download file from {0}".format(model_url.url())) Logger.log("w", "Could not download file from {0}".format(model_url.url()))
Message("Could not download file: " + str(model_url.url()),
title= "Loading Model failed",
message_type=Message.MessageType.ERROR).show()
return return
self.getHttpRequestManager().get( self.getHttpRequestManager().get(