Skip to content

Commit f151c0c

Browse files
committed
FIX : Visible is not always true by default
1 parent cd89c3c commit f151c0c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ponysdk/src/main/java/com/ponysdk/core/ui/basic/PWidget.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ protected void enrichForUpdate(final ModelWriter writer) {
145145
writer.write(ServerToClientModel.ADD_STYLE_NAME, styleNames.stream().collect(Collectors.joining(" ")));
146146
}
147147
if (this.title != null) writer.write(ServerToClientModel.WIDGET_TITLE, this.title);
148-
if (!this.visible) writer.write(ServerToClientModel.WIDGET_VISIBLE, this.visible);
149148
if (this.height != null) writer.write(ServerToClientModel.WIDGET_HEIGHT, this.height);
150149
if (this.width != null) writer.write(ServerToClientModel.WIDGET_WIDTH, this.width);
151150
if (this.debugID != null) writer.write(ServerToClientModel.ENSURE_DEBUG_ID, this.debugID);
@@ -195,7 +194,7 @@ public boolean isVisible() {
195194
public void setVisible(final boolean visible) {
196195
if (Objects.equals(this.visible, visible)) return;
197196
this.visible = visible;
198-
if (initialized) saveUpdate(ServerToClientModel.WIDGET_VISIBLE, visible);
197+
saveUpdate(ServerToClientModel.WIDGET_VISIBLE, visible);
199198
}
200199

201200
public String getWidth() {

0 commit comments

Comments
 (0)