mirror of
https://github.com/Zenithsiz/zsw.git
synced 2026-02-08 04:14:39 +00:00
Fixed panels' collapsing ui to close itself when changing geometry.
This was due to using the geometry as an id, we now just enumerate the panels.
This commit is contained in:
parent
9fea3b7691
commit
dfeeb66633
@ -343,8 +343,8 @@ impl App {
|
||||
// Then render it
|
||||
settings_window.open(&mut *settings_window_open).show(ctx, |ui| {
|
||||
let mut panels = inner.panels.lock();
|
||||
for panel in &mut *panels {
|
||||
ui.collapsing(format!("Panel {}", panel.geometry), |ui| {
|
||||
for (idx, panel) in panels.iter_mut().enumerate() {
|
||||
ui.collapsing(format!("Panel {idx}"), |ui| {
|
||||
// TODO: Make a macro to make this more readable
|
||||
ui.horizontal(|ui| {
|
||||
// Calculate the limits
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user