Skip to content

Commit

Permalink
Merge pull request #12929 from BabylonJS/revert-12899-issue122edits
Browse files Browse the repository at this point in the history
Revert "Fixed a bug from opening editor from PG"
  • Loading branch information
sebavan authored Aug 31, 2022
2 parents 498e226 + 3719757 commit 3ce4157
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class CommandBarComponent extends React.Component<ICommandBarComponentPro
const deleteeIcon = this.props.globalState.selectedControls.length === 0 ? deleteIconDisabled : deleteIcon;
const pasteeIcon = isPasteDisabled ? pasteIconDisabled : pasteIcon;

const responsiveUI = this.props.globalState.fromPG ? DataStorage.ReadBoolean("responsiveUI", true) : !DataStorage.ReadBoolean("responsiveUI", true);
const responsiveUI = this.props.globalState.fromPG ? DataStorage.ReadBoolean("responsiveUI", true) : DataStorage.ReadBoolean("Responsive", true);

this._sizeOption = _sizeValues.findIndex((value) => value.width == size.width && value.height == size.height);
if (this._sizeOption < 0) {
Expand Down Expand Up @@ -248,7 +248,7 @@ export class CommandBarComponent extends React.Component<ICommandBarComponentPro
<CheckBoxLineComponent
label="Responsive:"
iconLabel="Responsive GUIs will resize the UI layout and reflow controls to accommodate different device screen sizes"
isSelected={() => DataStorage.ReadBoolean("responsiveUI", true)}
isSelected={() => DataStorage.ReadBoolean("Responsive", true)}
onSelect={(value: boolean) => {
this.props.globalState.onResponsiveChangeObservable.notifyObservers(value);
DataStorage.WriteBoolean("Responsive", value);
Expand Down

0 comments on commit 3ce4157

Please sign in to comment.