Skip to content

Commit

Permalink
πŸ› οΈ(App): remove panel status on button click
Browse files Browse the repository at this point in the history
When the "πŸ‘† Replaced With THIS πŸ‘‡" button is clicked, the panel status for `WINDOW_NAMES[0][1]` is removed, ensuring the UI updates accordingly.

Signed-off-by: Benign X <[email protected]>
  • Loading branch information
W-Mai committed Nov 21, 2024
1 parent 54f0cb1 commit ad415a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ impl MainApp {
ui.with_layout(egui::Layout::left_to_right(egui::Align::TOP), |ui| {
if ui.button("πŸ‘† Replaced With THIS πŸ‘‡").clicked() {
self.code = sample_code.clone::<String>();
self.panel_status.remove(WINDOW_NAMES[0][1]);
}
ui.shrink_height_to_current();

Expand Down

0 comments on commit ad415a3

Please sign in to comment.