fix: wallet list at hidden state

This commit is contained in:
ardocrat 2024-05-31 06:44:22 +03:00
parent 768f081e5b
commit f86988eab6

View file

@ -196,7 +196,10 @@ impl WalletsContent {
}); });
egui::CentralPanel::default() egui::CentralPanel::default()
.frame(egui::Frame { .frame(if list_hidden {
egui::Frame::default()
} else {
egui::Frame {
stroke: View::item_stroke(), stroke: View::item_stroke(),
fill: Colors::fill_deep(), fill: Colors::fill_deep(),
inner_margin: Margin { inner_margin: Margin {
@ -206,6 +209,7 @@ impl WalletsContent {
bottom: View::get_bottom_inset() + 4.0, bottom: View::get_bottom_inset() + 4.0,
}, },
..Default::default() ..Default::default()
}
}) })
.show_inside(ui, |ui| { .show_inside(ui, |ui| {
// Update ui after 1 sec at single panel mode. // Update ui after 1 sec at single panel mode.