From 501f660fe857dd292a18248036124c5339019ed3 Mon Sep 17 00:00:00 2001 From: Vilem Duha Date: Thu, 11 Apr 2019 15:14:45 +0200 Subject: BlenderKit: save user preferences if user pastes the API key into the panel in 3d view. some users were confused by this, because they didn't save their preferences. Also some users filled in the API key area some other string and then didn't know what they did wrong. --- blenderkit/ui_panels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'blenderkit/ui_panels.py') diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py index 724a51a4..4aa4e25a 100644 --- a/blenderkit/ui_panels.py +++ b/blenderkit/ui_panels.py @@ -524,7 +524,7 @@ class VIEW3D_PT_blenderkit_unified(Panel): w = context.region.width - if user_preferences.api_key == '': + if len(user_preferences.api_key) < 35 and user_preferences.counter >10: op = layout.operator("wm.url_open", text="Register online", icon='QUESTION') op.url = paths.BLENDERKIT_SIGNUP_URL -- cgit v1.2.3