mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-12 07:14:37 +00:00
e292a0d347
* Code was formatted with pep8 recommendations * Fix attaching squish server config
11 lines
270 B
Python
11 lines
270 B
Python
def close_exists(element):
|
|
def _wrapper(method_to_decorate):
|
|
def wrapper(*args, **kwargs):
|
|
if element.is_visible:
|
|
element.close()
|
|
return method_to_decorate(*args, **kwargs)
|
|
|
|
return wrapper
|
|
|
|
return _wrapper
|