From 1e1910b6df9541a551e387d2260943575d3d7f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bj=C3=B6rkert?= Date: Wed, 18 Dec 2024 20:41:43 +0100 Subject: [PATCH 1/2] Do not show TRC for the Main branch --- LoopFollow/Remote/Settings/RemoteSettingsView.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LoopFollow/Remote/Settings/RemoteSettingsView.swift b/LoopFollow/Remote/Settings/RemoteSettingsView.swift index 2108e8bd..b97297b0 100644 --- a/LoopFollow/Remote/Settings/RemoteSettingsView.swift +++ b/LoopFollow/Remote/Settings/RemoteSettingsView.swift @@ -43,8 +43,9 @@ struct RemoteSettingsView: View { Picker("Remote Type", selection: $viewModel.remoteType) { Text("None").tag(RemoteType.none) Text("Nightscout").tag(RemoteType.nightscout) - Text("Trio Remote Control").tag(RemoteType.trc) - } + if BuildDetails.default.branch?.lowercased() != "main" { + Text("Trio Remote Control").tag(RemoteType.trc) + } } .pickerStyle(MenuPickerStyle()) Text("Nightscout is the only option available for the released version of Trio.") From 02c388d2211c08a5fd88837c24dbb7d87d0de042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bj=C3=B6rkert?= Date: Wed, 18 Dec 2024 20:44:14 +0100 Subject: [PATCH 2/2] Do not show TRC for the Main branch --- LoopFollow/Remote/Settings/RemoteSettingsView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LoopFollow/Remote/Settings/RemoteSettingsView.swift b/LoopFollow/Remote/Settings/RemoteSettingsView.swift index b97297b0..acc20e63 100644 --- a/LoopFollow/Remote/Settings/RemoteSettingsView.swift +++ b/LoopFollow/Remote/Settings/RemoteSettingsView.swift @@ -45,7 +45,8 @@ struct RemoteSettingsView: View { Text("Nightscout").tag(RemoteType.nightscout) if BuildDetails.default.branch?.lowercased() != "main" { Text("Trio Remote Control").tag(RemoteType.trc) - } } + } + } .pickerStyle(MenuPickerStyle()) Text("Nightscout is the only option available for the released version of Trio.")