fix(fx-list): UNKNOWN entries (Ozone treo scan) van vao list_fx de MASTERING PANEL khong mat plugin; nut Synth loai qua is_unknown

This commit is contained in:
2026-08-22 02:00:48 +00:00
parent dd2a320b2a
commit 67245a6f61
+7 -1
View File
@@ -479,9 +479,15 @@ class PluginManager:
Bridge tự phân loại FX/instrument theo VST3 subCategory; VST2 (.dll/.so)
không introspect được nên bridge báo instrument — bỏ qua ở đây. Cache
process-wide; refresh=True quét lại (Plugins Manager → Scan).
UNKNOWN entries (bridge không đọc được module — vd Ozone 11 treo khi
scan) cũng được đưa vào đây: không xác định là instrument → mặc định
xem như FX để MASTERING PANEL không mất plugin; nút Synth loại chúng
qua is_unknown (xem plugins.py /available).
"""
all_entries = self.list_scan_all(refresh=refresh)
results = [e for e in all_entries if e.get("is_fx")]
results = [e for e in all_entries
if e.get("is_fx") or e.get("is_unknown")]
results.sort(key=lambda x: x["name"].lower())
self._fx_scan_cache = results
return results