File tree Expand file tree Collapse file tree
editor/src/messages/tool/common_functionality/shapes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ impl ShapeType {
5151 ShapeType :: Spiral ,
5252 ShapeType :: Grid ,
5353 ShapeType :: Arrow ,
54+ ShapeType :: QrCode ,
5455 ShapeType :: Line , // KEEP THIS AT THE END
5556 ShapeType :: Rectangle , // KEEP THIS AT THE END
5657 ShapeType :: Ellipse , // KEEP THIS AT THE END
@@ -59,7 +60,7 @@ impl ShapeType {
5960 /// True if this shape mode's fill checkbox is ticked by default when nothing is selected.
6061 /// Spiral/Grid/Line are open paths and default to fill-off, the closed shapes default to fill-on.
6162 pub fn defaults_to_fill ( & self ) -> bool {
62- matches ! ( self , Self :: Polygon | Self :: Star | Self :: Circle | Self :: Arc | Self :: Rectangle | Self :: Ellipse | Self :: Arrow )
63+ matches ! ( self , Self :: Polygon | Self :: Star | Self :: Circle | Self :: Arc | Self :: Rectangle | Self :: Ellipse | Self :: Arrow | Self :: QrCode )
6364 }
6465
6566 pub fn name ( & self ) -> String {
You can’t perform that action at this time.
0 commit comments