]> git.proxmox.com Git - pve-installer.git/commit
tui: track previous screens so that that each is only created once
authorChristoph Heiss <c.heiss@proxmox.com>
Thu, 15 Jun 2023 08:49:24 +0000 (10:49 +0200)
committerChristoph Heiss <c.heiss@proxmox.com>
Thu, 15 Jun 2023 08:49:24 +0000 (10:49 +0200)
commit6ab6af4cb3532780c93d08e9fa9e82592918072a
tree9aef9f62c17629da8467d3eec83c083681937d3d
parentb107a892a8b5b3ac928d65f21eeff5f528a46644
tui: track previous screens so that that each is only created once

Until now, if the user navigated back and then forward again, the screen
would be constructed & added again to the stack. This would result in
missing values and broken "Previous" button behaviour.

Fix it by tracking their screen ids and simply switch to them as needed.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/main.rs