Warning: session_start(): open(/var/lib/php/sessions/sess_dpu84528i9fg6tobp1iid4m0av, 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
!7
static DynamicVStack buttons;
static Set loadedButtons /*= new HashSet; */ = weakIdentityHashSet();
static Q loadQ;
set flag WeakIdentityHashMap_debug.
p-subst-autoupdate {
buttons = showNiceVerticalButtons();
refresh();
addButtonsToWindow(buttons, "Refresh", f-thread refresh);
}
svoid refresh {
if (replaceNiceButtons(buttons, filesForNiceButtons(sortFilesByDate(listPNGFiles(userDesktopDir()))))) {
centerPackFrame(buttons);
scrollPaneOnScroll(enclosingScrollPane(buttons), r {
for (final JButton b : (L) (L) stackElementsShowing(buttons)) {
if (add(loadedButtons, b)) pcall { // will strangely not work?
//if (add_byContains(loadedButtons, b)) pcall {
TextImageAction tia = makeNiceButtons_map.get(b);
if (tia == null) continue with print("no tia");
final File f = filesForNiceButtons_map.get(tia);
if (f == null) continue with print("no file");
if (loadQ == null) loadQ = startQ();
loadQ.add(r {
setButtonImage(b, loadPreviewImageWithExactHeight(128, f));
print("Loaded: " + f);
print("Size: " + l(loadedButtons));
});
}
}
});
}
}