fix(macos): switch connection mode to menu
This commit is contained in:
@@ -187,13 +187,14 @@ struct GeneralSettings: View {
|
|||||||
.font(.title3.weight(.semibold))
|
.font(.title3.weight(.semibold))
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
|
||||||
Picker("", selection: self.$state.connectionMode) {
|
Picker("Mode", selection: self.$state.connectionMode) {
|
||||||
Text("Not configured").tag(AppState.ConnectionMode.unconfigured)
|
Text("Not configured").tag(AppState.ConnectionMode.unconfigured)
|
||||||
Text("Local (this Mac)").tag(AppState.ConnectionMode.local)
|
Text("Local (this Mac)").tag(AppState.ConnectionMode.local)
|
||||||
Text("Remote over SSH").tag(AppState.ConnectionMode.remote)
|
Text("Remote over SSH").tag(AppState.ConnectionMode.remote)
|
||||||
}
|
}
|
||||||
.pickerStyle(.segmented)
|
.pickerStyle(.menu)
|
||||||
.frame(width: 380, alignment: .leading)
|
.labelsHidden()
|
||||||
|
.frame(width: 260, alignment: .leading)
|
||||||
|
|
||||||
if self.state.connectionMode == .unconfigured {
|
if self.state.connectionMode == .unconfigured {
|
||||||
Text("Pick Local or Remote to start the Gateway.")
|
Text("Pick Local or Remote to start the Gateway.")
|
||||||
|
|||||||
Reference in New Issue
Block a user