!7 static DynamicVStack buttons; static ButtonImageLoader imageLoader; //set flag WeakIdentityHashMap_debug. p-noconsole-autoupdate { buttons = showNiceVerticalButtons(); imageLoader = new ButtonImageLoader(buttons); refresh(); addButtonsToWindow(buttons, "Refresh", f-thread refresh); } svoid refresh { if (replaceNiceButtons(buttons, filesForNiceButtons(sortFilesByDate(listPNGFiles(userDesktopDir())), f showImage))) centerPackFrame(buttons); imageLoader.update(); }