diff --git a/Sources/LyrebirdShoeGazeUI/EngineConfigView.swift b/Sources/LyrebirdShoeGazeUI/EngineConfigView.swift index 00f346d..aa3d1a4 100644 --- a/Sources/LyrebirdShoeGazeUI/EngineConfigView.swift +++ b/Sources/LyrebirdShoeGazeUI/EngineConfigView.swift @@ -178,14 +178,20 @@ public struct EngineConfigView: View { private func startEngine() { do { - if let applyConfig: (Double, Int, Int) throws -> Void = applyConfig { - try applyConfig(pendingSampleRate, pendingInputs, pendingOutputs) - } else { - try shoeGaze.reconfigureEngine( - sampleRate: pendingSampleRate, - inputChannels: pendingInputs, - outputChannels: pendingOutputs - ) + // Transport-only mode does not own the config controls — the engine is already + // configured (via the full instance's live apply, or the init defaults). Re-applying + // this instance's cached pending state here would revert edits made in the Settings + // sheet, so skip the reconfigure and just start. + if !transportOnly { + if let applyConfig: (Double, Int, Int) throws -> Void = applyConfig { + try applyConfig(pendingSampleRate, pendingInputs, pendingOutputs) + } else { + try shoeGaze.reconfigureEngine( + sampleRate: pendingSampleRate, + inputChannels: pendingInputs, + outputChannels: pendingOutputs + ) + } } try shoeGaze.engine.start() } catch { diff --git a/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift b/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift index 5aecd7c..c4415fb 100644 --- a/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift +++ b/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift @@ -198,7 +198,7 @@ public struct PedalPaletteView: View { HStack(alignment: .top, spacing: PedalPaletteView.sectionSpacing) { VStack(alignment: .leading, spacing: PedalPaletteView.rowSpacing) { sectionTitle("PEDALS") - filterMenu + if showsFilterMenu { filterMenu } } ForEach(groupedVisiblePedals, id: \.category) { group in VStack(alignment: .leading, spacing: PedalPaletteView.rowSpacing) { diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index ecddf0c..e0f20bf 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -162,11 +162,6 @@ public struct ShoeGazeBuilderView: View { /// Help sheet presentation flag (iOS button; macOS uses the Help menu). @State private var showHelpSheet: Bool = false - /// Compact-layout size class. `.compact` width (iPhone, iPad portrait / split view) switches to - /// the canvas-first layout where composition panels live in sheets; `.regular` keeps the docked - /// desktop-style layout. `nil` (unknown) is treated as regular. - @Environment(\.horizontalSizeClass) private var horizontalSizeClass: UserInterfaceSizeClass? - /// Compact-layout sheet flags — the composition panels docked in the regular layout become /// bottom sheets so the board canvas gets the full screen. @State private var showRigsSheet: Bool = false @@ -233,16 +228,6 @@ public struct ShoeGazeBuilderView: View { #endif } - /// `true` on the smaller iPads / split-view widths, where even the canvas-first docked strip - /// (mixer + scope + Tempo/Tuner) is tight and more can move into sheets. Reserved for - /// size-specific tuning; `.regular` is a full-screen iPad. - private var isNarrow: Bool { - #if os(iOS) - return horizontalSizeClass == .compact - #else - return false - #endif - } public var body: some View { rootContent