Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
text = _make_text(items)
if device == _details._current_device:
GLib.idle_add(_set_details, text)
selected_device = _find_selected_device()
assert selected_device
_details._current_device = selected_device
read_all = not (selected_device.kind is None or selected_device.online)
items = _details_items(selected_device, read_all)
_set_details(_make_text(items))
if read_all:
_details._current_device = None
else:
_ui_async(_read_slow, selected_device)
_details.set_visible(visible)