From b89328b5c3807c25dc8695eedfc4d7fad56426bb Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sun, 28 May 2023 11:23:07 +0200 Subject: [PATCH] Only show 'Reconnect' on active profile (#311) It doesn't make sense anywhere else. --- Passepartout/App/Views/OrganizerView+Profiles.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Passepartout/App/Views/OrganizerView+Profiles.swift b/Passepartout/App/Views/OrganizerView+Profiles.swift index 6b42e705..4816d98f 100644 --- a/Passepartout/App/Views/OrganizerView+Profiles.swift +++ b/Passepartout/App/Views/OrganizerView+Profiles.swift @@ -148,7 +148,9 @@ extension OrganizerView { } var body: some View { - reconnectButton + if profileManager.isActiveProfile(header.id) { + reconnectButton + } duplicateButton deleteButton }