File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ impl Widget for Layer<'_, '_> {
173
173
events : _,
174
174
} = self ;
175
175
egui:: CollapsingHeader :: new ( & layer. name )
176
- . id_source ( layer. id ) // Instead of using the layer name as the ID (which is not unique), use the layer ID
176
+ . id_salt ( layer. id ) // Instead of using the layer name as the ID (which is not unique), use the layer ID
177
177
. show ( ui, |ui| {
178
178
if !layer. is_active ( ) {
179
179
ui. spinner ( ) ;
@@ -212,7 +212,7 @@ impl Widget for Layer<'_, '_> {
212
212
}
213
213
214
214
egui:: CollapsingHeader :: new ( "⚙ Operations" )
215
- . id_source ( format ! ( "{:?}-operations" , layer. id) ) // Instead of using the layer name as the ID (which is not unique), use the layer ID
215
+ . id_salt ( format ! ( "{:?}-operations" , layer. id) ) // Instead of using the layer name as the ID (which is not unique), use the layer ID
216
216
. show ( ui, |ui| {
217
217
ui. with_layout ( Layout :: top_down_justified ( Align :: LEFT ) , |ui| {
218
218
ui. add ( OperationsWidget {
You can’t perform that action at this time.
0 commit comments