Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed double thumbnail preload.
Loading of resized images moved to ImageUtils and enabled ImageMagick mode.
  • Loading branch information
Pierre-Luc Paour committed Sep 1, 2002
1 parent ea09417 commit c82c335
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions com/gallery/GalleryRemote/MainFrame.java
Expand Up @@ -63,8 +63,6 @@ public class MainFrame extends javax.swing.JFrame
ImageIcon defaultThumbnail = null;
ThumbnailCache thumbnailCache = new ThumbnailCache( this );

boolean highQualityThumbnails = false;

int progressId = 0;

GridBagLayout gridBagLayout1 = new GridBagLayout();
Expand Down Expand Up @@ -110,9 +108,10 @@ public MainFrame() {
mAlbum = new Album();
mAlbumList = new ArrayList();

defaultThumbnail = thumbnailCache.loadThumbnail( DEFAULT_IMAGE );

highQualityThumbnails = GalleryRemote.getInstance().properties.getBooleanProperty( "highQualityThumbnails" );
defaultThumbnail = ImageUtils.load(
DEFAULT_IMAGE,
GalleryRemote.getInstance().properties.getThumbnailSize(),
ImageUtils.THUMB );
}


Expand Down Expand Up @@ -187,6 +186,8 @@ void thisWindowClosing( java.awt.event.WindowEvent e ) {
setVisible( false );
dispose();

ImageUtils.purgeTemp();

Log.log(Log.INFO, "Shutting log down");
Log.shutdown();

Expand Down Expand Up @@ -329,7 +330,6 @@ public void browseAddPictures() {
*/
public void addPictures( File[] files ) {
addPictures( files, -1 );
thumbnailCache.preloadThumbnails( files );
updateUI();
}

Expand Down

0 comments on commit c82c335

Please sign in to comment.