优化
This commit is contained in:
1047
Module/DeviceInfo.py
1047
Module/DeviceInfo.py
File diff suppressed because it is too large
Load Diff
@@ -49,7 +49,7 @@ def main(arg):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
# 获取启动时候传递的参数
|
# 获取启动时候传递的参数
|
||||||
main(sys.argv)
|
# main(sys.argv)
|
||||||
|
|
||||||
# 添加iOS开发包到电脑上
|
# 添加iOS开发包到电脑上
|
||||||
deployer = DevDiskImageDeployer(verbose=True)
|
deployer = DevDiskImageDeployer(verbose=True)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -842,9 +842,14 @@ class AiUtils(object):
|
|||||||
return not (ny2 < ry1 or ny1 > ry2) # 任意重叠即算属于资料区
|
return not (ny2 < ry1 or ny1 > ry2) # 任意重叠即算属于资料区
|
||||||
|
|
||||||
def is_toolbar_like(o) -> bool:
|
def is_toolbar_like(o) -> bool:
|
||||||
|
# 在 Cell 里的元素绝不是底部工具条(避免误杀“hgh”这类贴着底部的最后一条消息)
|
||||||
|
if get_ancestor_cell(o) is not None:
|
||||||
|
return False
|
||||||
|
|
||||||
txt = get_text(o)
|
txt = get_text(o)
|
||||||
if txt in EXCLUDES_LITERAL:
|
if txt in EXCLUDES_LITERAL:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
y = cls.parse_float(o, 'y', 0.0)
|
y = cls.parse_float(o, 'y', 0.0)
|
||||||
h = cls.parse_float(o, 'height', 0.0)
|
h = cls.parse_float(o, 'height', 0.0)
|
||||||
near_bottom = (area_bot - (y + h)) < 48
|
near_bottom = (area_bot - (y + h)) < 48
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ def _force_utf8_everywhere():
|
|||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
_force_utf8_everywhere()
|
# _force_utf8_everywhere()
|
||||||
|
|
||||||
class LogManager:
|
class LogManager:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user