Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Dialogs: keep show's doc comment on show

Brandon Thomas4919b3d07834
diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs
index 0a60ef18f..5642d7d74 100644
--- a/crates/ui-egui/src/dialogs.rs
+++ b/crates/ui-egui/src/dialogs.rs
@@ -2186,7 +2186,6 @@ fn check(ui: &mut egui::Ui, d: &mut Dialog, key: &str, label: &str) {
}
}
-/// Draw the active localized dialog; open popups own Enter/Escape, and result handling drives confirm or cancel.
/// An alert's message. Import warnings (`lines`: `{text, item}`) list one per line, scrolling
/// when there are many, with Show beside each that names a frame (sets `show`).
fn alert_message(app: &DesignApp, ui: &mut egui::Ui, d: &mut Dialog) {
@@ -2217,6 +2216,7 @@ fn alert_message(app: &DesignApp, ui: &mut egui::Ui, d: &mut Dialog) {
});
}
+/// Draw the active localized dialog; open popups own Enter/Escape, and result handling drives confirm or cancel.
pub fn show(app: &mut DesignApp, ctx: &egui::Context) {
let shortcuts = app.ui.dialog.as_ref().is_some_and(|d| d.id == crate::shortcuts_dialog::DIALOG_ID);
if shortcuts {