Skip to content

Commit 5398e6a

Browse files
committed
deprecated
1 parent 27f6f9f commit 5398e6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rgis-ui/src/side_panel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ impl Widget for Layer<'_, '_> {
173173
events: _,
174174
} = self;
175175
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
177177
.show(ui, |ui| {
178178
if !layer.is_active() {
179179
ui.spinner();
@@ -212,7 +212,7 @@ impl Widget for Layer<'_, '_> {
212212
}
213213

214214
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
216216
.show(ui, |ui| {
217217
ui.with_layout(Layout::top_down_justified(Align::LEFT), |ui| {
218218
ui.add(OperationsWidget {

0 commit comments

Comments
 (0)