feat: execute toggle_entry if translate'string' window is available
This commit is contained in:
@@ -189,7 +189,10 @@ end
|
||||
---@param data TransData
|
||||
---@overload fun(result:TransResult)
|
||||
function M:process(data)
|
||||
if self.pin then return end
|
||||
if self.window and self.window:is_valid() then
|
||||
self:execute 'toggle_entry'
|
||||
return
|
||||
end
|
||||
|
||||
local result, name = data:get_available_result()
|
||||
if not result then
|
||||
|
Reference in New Issue
Block a user