witchi / gallery-remote

Gallery Remote is a desktop client that lets you interact with the Gallery web based photo management system
http://gallery.menalto.com
GNU General Public License v2.0
1 stars 0 forks source link

Suppress jpegtran warning for G2 applets #3

Open witchi opened 10 years ago

witchi commented 10 years ago

The upload applet and the slideshow applet show the jpegtran warning ("An optional part of Gallery Remote, jpegtran, could not be found").

We should not show this warning in applets that are based on the GR framework, but are not GR itself.

Please suppress this warning for the slideshow applet and for the upload applet.

witchi commented 10 years ago

I'm talking about com.gallery.galleryremote.util.ImageUtils.stopUsingJpegtran() and com.gallery.galleryremote.util.ImageUtils.stopUsingJpegtranCrop().

Maybe adding GalleryRemote._().isAppletMode() to the if condition achieves what I'm asking for.