Simplified version for validation need to show user agreement

CURA-4501
This commit is contained in:
Aleksei S 2017-10-30 14:42:46 +01:00
parent c0f1af94ab
commit 22aaf64b63
3 changed files with 4 additions and 13 deletions

View file

@ -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"))