forked from mirrors/linphone-iphone
Only disable transfert when no current call or in conference
This commit is contained in:
parent
ee6d6c3a9c
commit
0f330d8e6c
1 changed files with 1 additions and 10 deletions
|
|
@ -260,18 +260,9 @@
|
|||
[conferenceButton setHidden:true];
|
||||
}
|
||||
}
|
||||
|
||||
// Disable menu when no call & no conference
|
||||
if(linphone_core_get_current_call(lc) == NULL && linphone_core_is_in_conference(lc) == FALSE) {
|
||||
[self hidePad];
|
||||
[self hideOptions];
|
||||
[optionsButton setEnabled:FALSE];
|
||||
} else {
|
||||
[optionsButton setEnabled:TRUE];
|
||||
}
|
||||
|
||||
// Disable transfert in conference
|
||||
if(linphone_core_is_in_conference(lc)) {
|
||||
if(linphone_core_get_current_call(lc) == NULL) {
|
||||
[optionsTransferButton setEnabled:FALSE];
|
||||
} else {
|
||||
[optionsTransferButton setEnabled:TRUE];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue