Skip to content

Commit 2128295

Browse files
committed
Fix QrCode missing from ShapeType::ALL and defaults_to_fill
1 parent f6f57f0 commit 2128295

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

editor/src/messages/tool/common_functionality/shapes/shape_utility.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)