mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-10 00:47:28 +00:00
modal: possibility to enable closing
This commit is contained in:
@@ -80,6 +80,11 @@ impl Modal {
|
||||
self.closeable.store(false, Ordering::Relaxed);
|
||||
}
|
||||
|
||||
/// Enable possibility to close [`Modal`].
|
||||
pub fn enable_closing(&self) {
|
||||
self.closeable.store(true, Ordering::Relaxed);
|
||||
}
|
||||
|
||||
/// Check if [`Modal`] is closeable.
|
||||
pub fn is_closeable(&self) -> bool {
|
||||
self.closeable.load(Ordering::Relaxed)
|
||||
|
||||
Reference in New Issue
Block a user