()
| 68 | open_dialog(dlg) |
| 69 | |
| 70 | def close_current_dialog(): |
| 71 | for ctl in page.overlay: |
| 72 | if isinstance(ctl, ft.AlertDialog): |
| 73 | ctl.open = False |
| 74 | page.update() |
| 75 | |
| 76 | def open_dialog(dialog: ft.AlertDialog): |
| 77 | if dialog not in page.overlay: |
no test coverage detected