Warning: session_start(): open(/var/lib/php/sessions/sess_312bog4a3tt17n77gu99oe8tle, 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_justID(SimpleLiveValue lvModuleID) {
final JComboBox cb = jLiveValueComboBox_withSimplifier(emptyStringPlus(dm_listModuleIDsAndNames()), lvModuleID, f firstIntAsString);
final Runnable update = r {
awt {
S selected = squareBracketStuff(selectedItem(cb));
LS l = emptyStringPlus(dm_listModuleIDsAndNames());
// 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;
}