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

Function create_load_payload_combobox

gui/ui_components.py:59–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58
59def create_load_payload_combobox():
60 combo = QComboBox()
61 load_icon = get_icon('pd') # Assuming 'load.ico' exists or will fallback to empty
62
63 manifest = load_plugins_manifest()
64 load_modes = manifest.get('load_payload_modes', [])
65
66 for m in load_modes:
67 combo.addItem(load_icon, m.get('label', m['id']), m['id'])
68
69 default_load = get_default_value('load_payload_mode')
70 if default_load:
71 for i in range(combo.count()):
72 if combo.itemData(i) == default_load:
73 combo.setCurrentIndex(i)
74 break
75
76 return combo
77
78
79def create_vm_checks_grid():

Callers 2

Calls 3

get_iconFunction · 0.85
load_plugins_manifestFunction · 0.85
get_default_valueFunction · 0.85

Tested by

no test coverage detected