Skip to content

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

Give a dropdown in the launch options the width of the segmented controls

v0lumehie6d6c7904458
diff --git a/frontend/Sources/NSPortBuilder/LaunchOptionsView.swift b/frontend/Sources/NSPortBuilder/LaunchOptionsView.swift
index 8ffe5ec8..ea4c28ba 100644
--- a/frontend/Sources/NSPortBuilder/LaunchOptionsView.swift
+++ b/frontend/Sources/NSPortBuilder/LaunchOptionsView.swift
@@ -214,7 +214,7 @@ struct LaunchOptionsView: View {
if LaunchControl.isSegmented(env: s.env, labels: options.map(\.label)) {
LauncherSegmented(options: options, selection: value) { set(s, $0) }
} else {
- LauncherDropdown(options: options, selection: value, label: s.label) { set(s, $0) }
+ LauncherDropdown(options: options, selection: value, label: s.label, fill: true) { set(s, $0) }
}
case "range":
let lo = s.min ?? 0, hi = s.max ?? 1