From ad83798bef146f458bafc0a37fb0407008537580 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 19 Nov 2023 18:35:58 +0100 Subject: [PATCH] Fixed search plugin crashing when enabling theme while serving --- material/plugins/search/plugin.py | 1 + src/plugins/search/plugin.py | 1 + 2 files changed, 2 insertions(+) diff --git a/material/plugins/search/plugin.py b/material/plugins/search/plugin.py index 5c254e3f7..724de6e0a 100644 --- a/material/plugins/search/plugin.py +++ b/material/plugins/search/plugin.py @@ -47,6 +47,7 @@ class SearchPlugin(BasePlugin[SearchConfig]): super().__init__(*args, **kwargs) # Initialize incremental builds + self.is_dirty = False self.is_dirtyreload = False # Initialize search index cache diff --git a/src/plugins/search/plugin.py b/src/plugins/search/plugin.py index 5c254e3f7..724de6e0a 100644 --- a/src/plugins/search/plugin.py +++ b/src/plugins/search/plugin.py @@ -47,6 +47,7 @@ class SearchPlugin(BasePlugin[SearchConfig]): super().__init__(*args, **kwargs) # Initialize incremental builds + self.is_dirty = False self.is_dirtyreload = False # Initialize search index cache