From 221f0b10d7c6b21d8b2678a4d9b233ef85f99dad Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Mon, 12 Jan 2026 16:32:42 +0100 Subject: [PATCH] Refresh view when config is applied --- Linphone/Core/CoreContext.swift | 3 +++ Linphone/GeneratedGit.swift | 2 +- Linphone/UI/Main/ContentView.swift | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Linphone/Core/CoreContext.swift b/Linphone/Core/CoreContext.swift index d96d5b6e6..f2905531e 100644 --- a/Linphone/Core/CoreContext.swift +++ b/Linphone/Core/CoreContext.swift @@ -59,6 +59,8 @@ class CoreContext: ObservableObject { var digestAuthInfoPendingPasswordUpdate: AuthInfo? + @Published var reloadID = UUID() + private init() { do { try initialiseCore() @@ -337,6 +339,7 @@ class CoreContext: ObservableObject { } self.accounts = accountModels ThemeManager.shared.applyTheme(named: themeMainColor) + self.reloadID = UUID() } } }, onLogCollectionUploadStateChanged: { (_: Core, _: Core.LogCollectionUploadState, info: String) in diff --git a/Linphone/GeneratedGit.swift b/Linphone/GeneratedGit.swift index 714e5969b..1df3e3179 100644 --- a/Linphone/GeneratedGit.swift +++ b/Linphone/GeneratedGit.swift @@ -2,6 +2,6 @@ import Foundation public enum AppGitInfo { public static let branch = "master" - public static let commit = "4f7e4b0c3" + public static let commit = "aed687606" public static let tag = "6.1.0-alpha" } diff --git a/Linphone/UI/Main/ContentView.swift b/Linphone/UI/Main/ContentView.swift index 20fdc661f..d38e211ad 100644 --- a/Linphone/UI/Main/ContentView.swift +++ b/Linphone/UI/Main/ContentView.swift @@ -1586,6 +1586,7 @@ struct ContentView: View { } } } + .id(coreContext.reloadID) } func openMenu() {