From 7db33f85591f77d93d1a595e56695333f463e744 Mon Sep 17 00:00:00 2001
From: Vilem Duha <vilem.duha@gmail.com>
Date: Mon, 15 Nov 2021 12:13:55 +0100
Subject: [PATCH] BlenderKit: Fix notificatoins reading

---
 blenderkit/search.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blenderkit/search.py b/blenderkit/search.py
index 36e4e1727..125b72662 100644
--- a/blenderkit/search.py
+++ b/blenderkit/search.py
@@ -431,7 +431,7 @@ def search_timer():
             if first_search_parsing:
                 first_search_parsing = False
                 all_notifications_count = comments_utils.count_all_notifications()
-                comments_utils.get_notifications_thread(api_key, all_count=all_notifications_count)
+                comments_utils.get_notifications_thread(preferences.api_key, all_count=all_notifications_count)
                 if utils.experimental_enabled() and not bpy.app.timers.is_registered(
                         refresh_notifications_timer) and not bpy.app.background:
                     bpy.app.timers.register(refresh_notifications_timer, persistent=True, first_interval=5)
-- 
GitLab