Sets whether this can be closed.
If set to `FALSE`, the close button, shortcuts and [method@Dialog.close] will result in [signal@Dialog:AdwDialog:close-attempt
] being emitted instead, and bottom sheet close swipe will be disabled. [method@Dialog.force_close] still works.
| this |
a dialog |
| can_close |
whether to allow closing |