Disable 'download all' button while doing the downloading
authorIvan Frade <ivan.frade@gmail.com>
Tue, 5 Jul 2011 07:19:02 +0000 (10:19 +0300)
committerIvan Frade <ivan.frade@gmail.com>
Tue, 5 Jul 2011 07:19:02 +0000 (10:19 +0300)
ui/Mussorgsky.qml

index a302819..fe9a8e9 100644 (file)
@@ -43,8 +43,10 @@ Page {
         MenuLayout {
             MenuItem { text: "Download all"; 
                        onClicked: { missionControl.download_all (albumModel) }
+                       enabled: !missionControl.is_downloading 
+                       // enabled doesn't update the theming. Bug reported. 
+                       //  we set the opacity ourselves in the mean time.
                        opacity: (missionControl.is_downloading ? 0.3 : 1)
-                       // This is not disabling the "onClicked", so it is mostly decorative
             }
         }
     }