From 47f8109c0b9d1bde06c9a80d82ed24f5f3ad469d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Sat, 30 Dec 2023 09:44:39 +0300 Subject: [PATCH] d --- Modules/CordX/src/Cord.Button.swift | 2 +- Modules/MeetupIdX/src/MeetupId.Generated.swift | 4 ++-- Utilities/platform/2/generation/pipeBusSource.py | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Modules/CordX/src/Cord.Button.swift b/Modules/CordX/src/Cord.Button.swift index 15d60b4..41fb1be 100644 --- a/Modules/CordX/src/Cord.Button.swift +++ b/Modules/CordX/src/Cord.Button.swift @@ -9,7 +9,7 @@ extension Cord { public init(_ key: String) { Bus.send( key, - v.eraseToAnyPublisher(), + v.map { true }.eraseToAnyPublisher(), sub: &subscriptions ) } diff --git a/Modules/MeetupIdX/src/MeetupId.Generated.swift b/Modules/MeetupIdX/src/MeetupId.Generated.swift index 6fd40a4..1cd7fcc 100644 --- a/Modules/MeetupIdX/src/MeetupId.Generated.swift +++ b/Modules/MeetupIdX/src/MeetupId.Generated.swift @@ -98,7 +98,7 @@ extension MeetupId { ctrl.pipe( dbg: "finishL", sub: nil, - Bus.events.compactMap { Bus.convertKeyValue(K.finishLoading, $0) }.map { (k: String, v: Void) in v }.eraseToAnyPublisher(), + Bus.events.compactMap { Bus.convertKeyValue(K.finishLoading, $0) }.map { (k: String, v: Bool) in v }.eraseToAnyPublisher(), { $0.finishLoading = true }, { $0.finishLoading = false } ) @@ -124,7 +124,7 @@ extension MeetupId { ctrl.pipe( dbg: "join", sub: nil, - Bus.events.compactMap { Bus.convertKeyValue(K.join, $0) }.map { (k: String, v: Void) in v }.eraseToAnyPublisher(), + Bus.events.compactMap { Bus.convertKeyValue(K.join, $0) }.map { (k: String, v: Bool) in v }.eraseToAnyPublisher(), { $0.join = true }, { $0.join = false } ) diff --git a/Utilities/platform/2/generation/pipeBusSource.py b/Utilities/platform/2/generation/pipeBusSource.py index bb53463..e485019 100644 --- a/Utilities/platform/2/generation/pipeBusSource.py +++ b/Utilities/platform/2/generation/pipeBusSource.py @@ -1,8 +1,5 @@ def pipeBusSource(name, entity, busKey, structure, fmt): valueType = structure.model.fields[name][0] - if "toggle" in entity.pipes[name]: - valueType = "Void" - return fmt \ .replace("%BUS_KEY%", busKey) \ .replace("%BUS_VALUE_TYPE%", valueType)