Warning: session_start(): open(/var/lib/php/sessions/sess_6fqq0t246r8apiju8rhgafhdk5, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static JComboBox dm_moduleSelectorComboBox(SimpleLiveValue lvModuleIDAndName) {
final JComboBox cb = jLiveValueComboBox(emptyStringPlus(dm_listModuleIDsAndNames()), lvModuleIDAndName);
final ReliableSingleThread update = new(r {
S selected = squareBracketStuff(selectedItem(cb));
LS l = emptyStringPlus(dm_listModuleIDsAndNames());
swing {
// TODO: change items while keeping popup open
if (!cb.isPopupVisible() || !moduleSelector_sameList(getComboBoxItems(cb), l))
setComboBoxItems(cb, l);
setSelectedIndex(cb, indexOfStringWithSquareBracketStuffEq(l, selected));
}
});
final new Var listener;
bindToComponent(cb, r {
listener.set(vmBus_onModulesListChange(update));
}, r { close(listener!) });
awtEvery(cb, 60.0, update); // to make up for TODO up there
ret cb;
}