forked from 1b-agent/opencadstudio-upstream
fix(blocks): give the Polar Stretch palette row its own widget id
The Actions catalog's id fallback assigned authoring-tool-flip-action to both Polar Stretch and Flip, so id lookups resolved the disabled Polar Stretch row and Flip clicks never dispatched.
This commit is contained in:
1 parent
a1de7e4ecd
commit
8db77b2398
1 file changed
+1
-1
@@ -292,7 +292,7 @@ fn catalog(
|
||||
} else if single {
|
||||
container(entry).id(if *label=="Lookup" {"authoring-tool-lookup"}else{"authoring-tool-basepoint"}).into()
|
||||
} else if geometry_action {
|
||||
container(entry).id(match *label {"Move"=>"authoring-tool-move-action","Scale"=>"authoring-tool-scale-action","Rotate"=>"authoring-tool-rotate-action","Stretch"=>"authoring-tool-stretch-action","Array"=>"authoring-tool-array-action",_=>"authoring-tool-flip-action"}).into()
|
||||
container(entry).id(match *label {"Move"=>"authoring-tool-move-action","Scale"=>"authoring-tool-scale-action","Rotate"=>"authoring-tool-rotate-action","Stretch"=>"authoring-tool-stretch-action","Polar Stretch"=>"authoring-tool-polar-stretch-action","Array"=>"authoring-tool-array-action",_=>"authoring-tool-flip-action"}).into()
|
||||
} else if lookup_action {
|
||||
container(entry).id("authoring-tool-lookup-table").into()
|
||||
} else if properties_table_action {
|
||||
|
||||
Reference in new issue
Block a user