Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

The engine channel row uses LauncherDropdown, like every picker since #292/#294

LNPANDY0a138f6d17bb
diff --git a/frontend/Sources/NSPortBuilder/ContentView.swift b/frontend/Sources/NSPortBuilder/ContentView.swift
index 3434676c..284802b0 100644
--- a/frontend/Sources/NSPortBuilder/ContentView.swift
+++ b/frontend/Sources/NSPortBuilder/ContentView.swift
@@ -3754,11 +3754,10 @@ struct BuilderView: View {
divider
// A different channel is asked about first (the alert below): the switch can recompile every game's shaders
row(m.t("engine.update"), detail: m.t("engine.channelNote"), dot: LauncherPalette.ready) {
- LauncherMenuPicker(options: EngineChannel.allCases.map { (value: $0.rawValue, label: m.t($0.labelKey)) },
- selection: m.engineSelection.channel.rawValue, fill: true, buttonLike: true) { v in
+ LauncherDropdown(options: EngineChannel.allCases.map { (value: $0.rawValue, label: m.t($0.labelKey)) },
+ selection: m.engineSelection.channel.rawValue, fill: true) { v in
if let channel = EngineChannel(rawValue: v) { m.requestEngineChannel(channel) }
}
- .frame(width: Self.settingsButtonWidth)
.disabled(!idle)
.padTarget("set.engineChannel", scope: "main") {
if idle { m.requestEngineChannel(m.engineSelection.channel == .stable ? .experimental : .stable) }