mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
Update UI on config change
This commit is contained in:
parent
ed08190ff4
commit
6827bdc1dc
3 changed files with 7 additions and 1 deletions
|
|
@ -335,6 +335,7 @@ class CoreContext: ObservableObject {
|
||||||
}, onConfiguringStatus: { (_: Core, status: ConfiguringState, message: String) in
|
}, onConfiguringStatus: { (_: Core, status: ConfiguringState, message: String) in
|
||||||
Log.info("New configuration state is \(status) = \(message)\n")
|
Log.info("New configuration state is \(status) = \(message)\n")
|
||||||
let themeMainColor = CorePreferences.themeMainColor
|
let themeMainColor = CorePreferences.themeMainColor
|
||||||
|
SharedMainViewModel.shared.updateConfigChanges()
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
if status == ConfiguringState.Successful {
|
if status == ConfiguringState.Successful {
|
||||||
var accountModels: [AccountModel] = []
|
var accountModels: [AccountModel] = []
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,6 @@ import Foundation
|
||||||
|
|
||||||
public enum AppGitInfo {
|
public enum AppGitInfo {
|
||||||
public static let branch = "master"
|
public static let branch = "master"
|
||||||
public static let commit = "57b7b857b"
|
public static let commit = "ed08190ff"
|
||||||
public static let tag = "6.1.0-alpha"
|
public static let tag = "6.1.0-alpha"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -245,6 +245,11 @@ class SharedMainViewModel: ObservableObject {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func updateConfigChanges() {
|
||||||
|
updateDisableChatFeature()
|
||||||
|
updateDisableMeetingFeature()
|
||||||
|
}
|
||||||
|
|
||||||
func getCardDavFriendsListsCount() {
|
func getCardDavFriendsListsCount() {
|
||||||
CoreContext.shared.doOnCoreQueue { core in
|
CoreContext.shared.doOnCoreQueue { core in
|
||||||
var list: [String] = []
|
var list: [String] = []
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue