From 972e48c7c8b7c16df23df593ffee537e63f50fb2 Mon Sep 17 00:00:00 2001 From: Yuyang Zhang Date: Sat, 18 Nov 2023 14:23:35 -0500 Subject: [PATCH] fix: adapting to clear widget --- yazi-fm/src/app.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/yazi-fm/src/app.rs b/yazi-fm/src/app.rs index 5137cac9..427e91fc 100644 --- a/yazi-fm/src/app.rs +++ b/yazi-fm/src/app.rs @@ -8,9 +8,6 @@ use yazi_config::{keymap::{Exec, Key, KeymapLayer}, BOOT}; use yazi_core::{emit, files::FilesOp, input::InputMode, Ctx, Event}; use yazi_shared::Term; -use yazi_adaptor::ADAPTOR; -// use yazi_config::MANAGER; - use crate::{Executor, Logs, Panic, Root, Signals}; pub(super) struct App { @@ -197,16 +194,10 @@ impl App { Event::Select(opt, tx) => { self.cx.select.show(opt, tx); - let Rect { x, y, width, height} = self.cx.area(&self.cx.select.position); - let select_area = Rect {x:x+1, y:y+1, width:width-2, height:height-2}; - ADAPTOR.image_hide(select_area).ok(); emit!(Render); } Event::Input(opt, tx) => { self.cx.input.show(opt, tx); - let Rect { x, y, width, height} = self.cx.area(&self.cx.input.position); - let input_area = Rect {x:x+1, y:y+1, width:width-2, height:height-2}; - ADAPTOR.image_hide(input_area).ok(); emit!(Render); }