Skip to content

Commit

Permalink
Revert "Fixed a bug from opening editor from PG (#12899)"
Browse files Browse the repository at this point in the history
This reverts commit fbaf99f [formerly cb65c0cc44f1e3dba86ccca7d60a6b2d0adf1757].


Former-commit-id: d6806dde8bd26d10b794ce923998dfcbb0ee4181
  • Loading branch information
RaananW authored Aug 31, 2022
1 parent 917a44c commit 21cacad
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 21cacad

Please sign in to comment.