MCPcopy Create free account
hub / github.com/echQoQ/RustSL / create_encryption_combobox

Function create_encryption_combobox

gui/ui_components.py:19–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18
19def create_encryption_combobox():
20 combo = QComboBox()
21 combo.setIconSize(QSize(20, 20))
22
23 enc_icon = get_icon('enc')
24 manifest = load_plugins_manifest()
25
26 for e in manifest['encryption']:
27 combo.addItem(enc_icon, e.get('label', e['id']), e['id'])
28
29 default_enc = get_default_value('encryption')
30 if default_enc:
31 for i in range(combo.count()):
32 if combo.itemData(i) == default_enc:
33 combo.setCurrentIndex(i)
34 break
35
36 return combo
37
38
39def create_mem_mode_combobox():

Callers 1

Calls 3

get_iconFunction · 0.85
load_plugins_manifestFunction · 0.85
get_default_valueFunction · 0.85

Tested by

no test coverage detected