mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-22 00:09:18 +08:00
Fix: Disable u2 float window (#2059)
This commit is contained in:
@@ -210,14 +210,25 @@ class IniterNoMinicap(u2.init.Initer):
|
|||||||
@property
|
@property
|
||||||
def minicap_urls(self):
|
def minicap_urls(self):
|
||||||
"""
|
"""
|
||||||
|
Don't install minicap on emulators, return empty urls.
|
||||||
|
|
||||||
binary from https://github.com/openatx/stf-binaries
|
binary from https://github.com/openatx/stf-binaries
|
||||||
only got abi: armeabi-v7a and arm64-v8a
|
only got abi: armeabi-v7a and arm64-v8a
|
||||||
"""
|
"""
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
# Monkey patch, don't install minicap on emulators
|
class DevicePatch(u2._Device):
|
||||||
|
def show_float_window(self, show=True):
|
||||||
|
"""
|
||||||
|
Don't show float windows.
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
# Monkey patch
|
||||||
u2.init.Initer = IniterNoMinicap
|
u2.init.Initer = IniterNoMinicap
|
||||||
|
u2.Device = DevicePatch
|
||||||
|
|
||||||
|
|
||||||
class HierarchyButton:
|
class HierarchyButton:
|
||||||
|
|||||||
Reference in New Issue
Block a user