Temp patch for missing attribute

This commit is contained in:
cmdr2 2024-10-18 08:30:29 +05:30
parent f751070c7f
commit 459bfd4280

View File

@ -38,7 +38,7 @@ def set_vram_optimizations(context):
config = getConfig() config = getConfig()
vram_usage_level = config.get("vram_usage_level", "balanced") vram_usage_level = config.get("vram_usage_level", "balanced")
if vram_usage_level != context.vram_usage_level: if hasattr(context, "vram_usage_level") and vram_usage_level != context.vram_usage_level:
context.vram_usage_level = vram_usage_level context.vram_usage_level = vram_usage_level
return True return True