mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Simplified version for validation need to show user agreement
CURA-4501
This commit is contained in:
parent
c0f1af94ab
commit
22aaf64b63
3 changed files with 4 additions and 13 deletions
|
@ -42,7 +42,7 @@ class UserAgreement(QObject, Extension):
|
|||
Logger.log("i", "User did NOT agree to the user agreement")
|
||||
Preferences.getInstance().setValue("general/accepted_user_agreement", False)
|
||||
CuraApplication.getInstance().quit()
|
||||
CuraApplication.getInstance().setHasShownUserAgreement(True)
|
||||
CuraApplication.getInstance().setNeedToShowUserAgreement(False)
|
||||
|
||||
def createUserAgreementWindow(self):
|
||||
path = QUrl.fromLocalFile(os.path.join(PluginRegistry.getInstance().getPluginPath(self.getPluginId()), "UserAgreement.qml"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue