fix 没启用的mixin不再应用

This commit is contained in:
2026-11-01 11:54:55 +08:00
parent 544a68bbd4
commit 5b0cf965bd
@@ -66,7 +66,8 @@ object MixinProfiles {
private fun collect(): LinkedHashMap<String, ProfileAcc> {
val profiles = linkedMapOf<String, ProfileAcc>()
for ((_, profile) in UploadStore.load()) {
for ((enabled, profile) in UploadStore.load()) {
if (!enabled) continue
val custom = profile as? UploadProfileCustom ?: continue
val mixin = custom.mixin ?: continue
for ((name, steps) in mixin.profiles) {