!7 static DynamicHStack buttons; p-noconsole-autoupdate { buttons = showNiceVerticalButtons(); refresh(); addButtonsToWindow(buttons, "Refresh", f-thread refresh); } svoid refresh { if (replaceNiceButtons(buttons, sortFilesByDate(listPNGFiles(userDesktopDir())))) centerPackFrame(buttons); }