Addon Manager: Work around stylesheet problem in Qt 5.9

This commit is contained in:
Chris Hennes
2021-12-31 11:00:02 -06:00
parent c855a3072e
commit 99bbe40154
2 changed files with 9 additions and 4 deletions

View File

@@ -489,7 +489,8 @@ class CommandAddonManager:
def cache_macro(self, macro: AddonManagerRepo):
if not hasattr(self, "macro_cache"):
self.macro_cache = []
self.macro_cache.append(macro.macro.to_cache())
if macro.macro is not None:
self.macro_cache.append(macro.macro.to_cache())
def write_macro_cache(self):
macro_cache_path = self.get_cache_file_name("macro_cache.json")