Skip to content

Commit

Permalink
Revert "Make it one if instead of two"
Browse files Browse the repository at this point in the history
This reverts commit e3ca657.
  • Loading branch information
Tymewalk committed Feb 22, 2017
1 parent e3ca657 commit ba74d89
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions core/field_dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,13 @@ Blockly.FieldDropdown.prototype.onHide = function() {
this.dropDownOpen_ = false;
// Update colour to look selected.
if (!this.disableColourChange_) {
if (this.sourceBlock_ && this.sourceBlock_.isShadow()) {
this.sourceBlock_.setColour(this.savedPrimary_,
this.sourceBlock_.getColourSecondary(), this.sourceBlock_.getColourTertiary());
} else if (this.box_) {
this.box_.setAttribute('fill', this.sourceBlock_.getColour());
if (this.sourceBlock_) {
if (this.sourceBlock_.isShadow()) {
this.sourceBlock_.setColour(this.savedPrimary_,
this.sourceBlock_.getColourSecondary(), this.sourceBlock_.getColourTertiary());
} else if (this.box_) {
this.box_.setAttribute('fill', this.sourceBlock_.getColour());
}
}
}
};
Expand Down

0 comments on commit ba74d89

Please # to comment.