working dialog is now at the correct place

This commit is contained in:
filipriec
2025-04-23 12:13:56 +02:00
parent 3c8ea28da1
commit 90ca8cf97c
2 changed files with 7 additions and 13 deletions

View File

@@ -123,18 +123,6 @@ impl AppState {
}
}
/// Shows a standard success dialog after saving a table.
pub fn show_save_success_dialog(&mut self, message: &str) {
self.ui.dialog.dialog_show = true;
self.ui.dialog.dialog_title = "Save Successful".to_string();
self.ui.dialog.dialog_message = message.to_string();
self.ui.dialog.dialog_buttons = vec!["OK".to_string()];
self.ui.dialog.dialog_active_button_index = 0;
self.ui.dialog.purpose = Some(DialogPurpose::SaveTableSuccess);
self.ui.dialog.is_loading = false;
self.ui.focus_outside_canvas = true;
self.focused_button_index = 0; // Focus the first (only) button
}
/// Hides the dialog and clears its content.
pub fn hide_dialog(&mut self) {