1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 23:00:04 -04:00

IdSalt (WIP)

This commit is contained in:
lucasmerlin
2026-03-23 13:01:51 +01:00
parent ad510257de
commit 0686107840
14 changed files with 136 additions and 40 deletions

View File

@@ -56,7 +56,7 @@ fn viewport_content(ui: &mut egui::Ui, open: &mut bool) {
for (id, viewport) in ordered_viewports {
ui.group(|ui| {
ui.label(format!("viewport {id:?}"));
ui.push_id(id, |ui| {
ui.push_id(id.0, |ui| {
viewport.ui(ui);
});
});