ACME-1272, ACME-1292 : Disable filter drop down when necessary
parent
b4405c5388
commit
c7c755b82e
|
|
@ -238,6 +238,7 @@ void LLFacebookPhotoPanel::draw()
|
|||
mCancelButton->setEnabled(no_ongoing_connection);
|
||||
mCaptionTextBox->setEnabled(no_ongoing_connection);
|
||||
mResolutionComboBox->setEnabled(no_ongoing_connection);
|
||||
mFilterComboBox->setEnabled(no_ongoing_connection);
|
||||
mRefreshBtn->setEnabled(no_ongoing_connection);
|
||||
mLocationCheckbox->setEnabled(no_ongoing_connection);
|
||||
|
||||
|
|
|
|||
|
|
@ -130,6 +130,7 @@ void LLFlickrPhotoPanel::draw()
|
|||
mTagsTextBox->setEnabled(no_ongoing_connection);
|
||||
mRatingComboBox->setEnabled(no_ongoing_connection);
|
||||
mResolutionComboBox->setEnabled(no_ongoing_connection);
|
||||
mFilterComboBox->setEnabled(no_ongoing_connection);
|
||||
mRefreshBtn->setEnabled(no_ongoing_connection);
|
||||
mLocationCheckbox->setEnabled(no_ongoing_connection);
|
||||
|
||||
|
|
|
|||
|
|
@ -123,10 +123,12 @@ void LLTwitterPhotoPanel::draw()
|
|||
|
||||
// Enable interaction only if no transaction with the service is on-going (prevent duplicated posts)
|
||||
bool no_ongoing_connection = !(LLTwitterConnect::instance().isTransactionOngoing());
|
||||
bool photo_checked = mPhotoCheckbox->getValue().asBoolean();
|
||||
mCancelButton->setEnabled(no_ongoing_connection);
|
||||
mStatusTextBox->setEnabled(no_ongoing_connection);
|
||||
mResolutionComboBox->setEnabled(no_ongoing_connection && mPhotoCheckbox->getValue().asBoolean());
|
||||
mRefreshBtn->setEnabled(no_ongoing_connection && mPhotoCheckbox->getValue().asBoolean());
|
||||
mResolutionComboBox->setEnabled(no_ongoing_connection && photo_checked);
|
||||
mFilterComboBox->setEnabled(no_ongoing_connection && photo_checked);
|
||||
mRefreshBtn->setEnabled(no_ongoing_connection && photo_checked);
|
||||
mLocationCheckbox->setEnabled(no_ongoing_connection);
|
||||
mPhotoCheckbox->setEnabled(no_ongoing_connection);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue