cleanup: thingys

This commit is contained in:
Nova
2025-09-21 00:39:55 -07:00
parent 928886563d
commit 76fc1bfab5
5 changed files with 19 additions and 26 deletions

View File

@@ -20,14 +20,13 @@ pub struct CaptureManager {
}
impl CaptureManager {
pub fn update_capture(&mut self, method: &InputMethod) {
if let Some(capture) = &self.capture.upgrade() {
if !method
if let Some(capture) = &self.capture.upgrade()
&& !method
.capture_attempts
.get_valid_contents()
.contains(capture)
{
self.capture = Weak::new();
}
{
self.capture = Weak::new();
}
}
pub fn set_new_capture(