info.endEditing();
}
editor.hideWait();
ImageList oldImages = images;
initImages(folder, useCache);
if (ApplicationMode.isBasicMode()) {
browser = BrowserFactory.createExpanded(images);
}
else {
browser = BrowserFactory.createRecent(images);
}
setBrowser(); // Puts browser as the viewport in browserScroll
initBrowserSelection(folder);
images.start();
if (oldImages != null) {
// migrate the pause depth to the new browser
int pauses = oldImages.getPauseDepth();
for (int n=0; n<pauses; n++) {
images.pause();
}
}
menus.update();