Author: mherger
Date: Mon Mar 29 09:19:08 2010
New Revision: 8671

URL: http://svn.slimdevices.com/jive?rev=8671&view=rev
Log:
Fixed Bug: 15925
Description: remove "Auto Rotate" option from any devices but jive

Modified:
    
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageViewerApplet.lua

Modified: 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageViewerApplet.lua
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageViewerApplet.lua?rev=8671&r1=8670&r2=8671&view=diff
==============================================================================
--- 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageViewerApplet.lua
 (original)
+++ 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageViewerApplet.lua
 Mon Mar 29 09:19:08 2010
@@ -784,14 +784,6 @@
                        end
                },
                {
-                       text = self:string("IMAGE_VIEWER_ROTATION"),
-                       sound = "WINDOWSHOW",
-                       callback = function(event, menuItem)
-                               self:defineRotation(menuItem)
-                               return EVENT_CONSUME
-                       end
-               },
-               {
                        text = self:string("IMAGE_VIEWER_ZOOM"),
                        sound = "WINDOWSHOW",
                        callback = function(event, menuItem)
@@ -808,6 +800,17 @@
                        end
                },
        }
+       
+       if System:hasDeviceRotation() then
+               table.insert(settingsMenu, 5, {
+                       text = self:string("IMAGE_VIEWER_ROTATION"),
+                       sound = "WINDOWSHOW",
+                       callback = function(event, menuItem)
+                               self:defineRotation(menuItem)
+                               return EVENT_CONSUME
+                       end
+               })
+       end
        
        -- no need for a source setting on baby - we don't have any choice
        if System:hasLocalStorage() then

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to