From a3dad4e445fed4f5833b2bd1d0239848ad8335f5 Mon Sep 17 00:00:00 2001 From: Davide Date: Mon, 18 Nov 2024 09:09:38 +0100 Subject: [PATCH] Observe tunnel in grid/list Can notice in Simulator not updating installed profile. Regression from #843 --- .../Library/Sources/AppUIMain/Views/App/ProfileGridView.swift | 3 ++- .../Library/Sources/AppUIMain/Views/App/ProfileListView.swift | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileGridView.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileGridView.swift index 891fa946..9a9275aa 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileGridView.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileGridView.swift @@ -36,7 +36,8 @@ struct ProfileGridView: View, Routable, TunnelInstallationProviding { @ObservedObject var profileManager: ProfileManager - let tunnel: ExtendedTunnel + @ObservedObject + var tunnel: ExtendedTunnel let interactiveManager: InteractiveManager diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileListView.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileListView.swift index 423d789c..60aacbce 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileListView.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/ProfileListView.swift @@ -42,7 +42,8 @@ struct ProfileListView: View, Routable, TunnelInstallationProviding { @ObservedObject var profileManager: ProfileManager - let tunnel: ExtendedTunnel + @ObservedObject + var tunnel: ExtendedTunnel let interactiveManager: InteractiveManager