优化
This commit is contained in:
@@ -842,9 +842,14 @@ class AiUtils(object):
|
||||
return not (ny2 < ry1 or ny1 > ry2) # 任意重叠即算属于资料区
|
||||
|
||||
def is_toolbar_like(o) -> bool:
|
||||
# 在 Cell 里的元素绝不是底部工具条(避免误杀“hgh”这类贴着底部的最后一条消息)
|
||||
if get_ancestor_cell(o) is not None:
|
||||
return False
|
||||
|
||||
txt = get_text(o)
|
||||
if txt in EXCLUDES_LITERAL:
|
||||
return True
|
||||
|
||||
y = cls.parse_float(o, 'y', 0.0)
|
||||
h = cls.parse_float(o, 'height', 0.0)
|
||||
near_bottom = (area_bot - (y + h)) < 48
|
||||
|
||||
@@ -26,7 +26,7 @@ def _force_utf8_everywhere():
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
_force_utf8_everywhere()
|
||||
# _force_utf8_everywhere()
|
||||
|
||||
class LogManager:
|
||||
"""
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user