fix 没启用的mixin不再应用
This commit is contained in:
@@ -66,7 +66,8 @@ object MixinProfiles {
|
|||||||
private fun collect(): LinkedHashMap<String, ProfileAcc> {
|
private fun collect(): LinkedHashMap<String, ProfileAcc> {
|
||||||
val profiles = linkedMapOf<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 custom = profile as? UploadProfileCustom ?: continue
|
||||||
val mixin = custom.mixin ?: continue
|
val mixin = custom.mixin ?: continue
|
||||||
for ((name, steps) in mixin.profiles) {
|
for ((name, steps) in mixin.profiles) {
|
||||||
|
|||||||
Reference in New Issue
Block a user