Refresh view when config is applied

This commit is contained in:
Benoit Martins 2026-01-12 16:32:42 +01:00
parent aed6876065
commit 221f0b10d7
3 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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"
}

View file

@ -1586,6 +1586,7 @@ struct ContentView: View {
}
}
}
.id(coreContext.reloadID)
}
func openMenu() {