Dialog.canClose

Get canClose property.

  1. bool canClose [@property getter]
    class Dialog
    @property
    bool
    canClose
    ()
  2. bool canClose [@property setter]

Return Value

Type: bool

Whether the dialog can be closed.

If set to FALSE, the close button, shortcuts and adw.dialog.Dialog.close will result in signal@Dialog::close-attempt being emitted instead, and bottom sheet close swipe will be disabled. adw.dialog.Dialog.forceClose still works.