mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
StatusBar: show "no network" first
This commit is contained in:
parent
385f9f2920
commit
4fd8f8ea45
1 changed files with 4 additions and 6 deletions
|
|
@ -174,16 +174,14 @@
|
|||
NSString *message = nil;
|
||||
LinphoneGlobalState gstate = linphone_core_get_global_state(LC);
|
||||
|
||||
if (gstate == LinphoneGlobalConfiguring) {
|
||||
if (!linphone_core_is_network_reachable(LC)) {
|
||||
message = NSLocalizedString(@"Network down", nil);
|
||||
} else if (gstate == LinphoneGlobalConfiguring) {
|
||||
message = NSLocalizedString(@"Fetching remote configuration", nil);
|
||||
} else if (config == NULL) {
|
||||
state = LinphoneRegistrationNone;
|
||||
if (linphone_core_get_proxy_config_list(LC) != NULL) {
|
||||
if (linphone_core_is_network_reachable(LC)) {
|
||||
message = NSLocalizedString(@"No default account", nil);
|
||||
} else {
|
||||
message = NSLocalizedString(@"Network down", nil);
|
||||
}
|
||||
message = NSLocalizedString(@"No default account", nil);
|
||||
} else {
|
||||
message = NSLocalizedString(@"No account configured", nil);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue