tui: /yolo works while a turn runs; '!' on permission prompt allows and enables yolo
This commit is contained in:
1 parent
43944eb6b5
commit
5171e7458a
3 files changed
+18
-2
No files matched your search
@@ -366,6 +366,10 @@ impl Allow {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn yolo_on(&self) -> bool {
|
||||
self.yolo
|
||||
}
|
||||
|
||||
/// Toggle: allow everything (not persisted); returns the new state.
|
||||
pub fn toggle_yolo(&mut self) -> bool {
|
||||
self.yolo = !self.yolo;
|
||||
|
||||
Reference in new issue
Block a user