Skip to content

Commit

Permalink
live-preview: Use a better way to detect whether an ElementInfo is valid
Browse files Browse the repository at this point in the history
The type name is empty for everything deriving from `Empty` :-/
  • Loading branch information
hunger committed Sep 13, 2024
1 parent eed1222 commit df18138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lsp/ui/views/property-view.slint
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export component PropertyView {
in property <ElementInformation> current-element <=> Api.current-element;

property <length> key-width: self.width / 2.5;
property <bool> element-loaded: root.current-element.type-name != "";
property <bool> element-loaded: root.current-element.properties.length > 0;

width: EditorSizeSettings.property-bar-width;

Expand Down

0 comments on commit df18138

Please sign in to comment.