summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Briza <mbriza@redhat.com>2016-04-25 17:00:10 +0200
committerMartin Briza <mbriza@redhat.com>2016-04-25 17:00:10 +0200
commitd3f1c2846333c52e3125c35d9cc80a6f3ac28186 (patch)
tree0f90a25396566aca90f1a966ff690a41829b09a2
parent6604d6991bcd41a02801e021e0da2666a9a24829 (diff)
Got rid of the BusyIndicator eating up CPU up to 100%3.93.3
-rw-r--r--liveusb/components/DownloadDialog.qml12
1 files changed, 4 insertions, 8 deletions
diff --git a/liveusb/components/DownloadDialog.qml b/liveusb/components/DownloadDialog.qml
index 76fba58..62be2b6 100644
--- a/liveusb/components/DownloadDialog.qml
+++ b/liveusb/components/DownloadDialog.qml
@@ -1,5 +1,6 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
+import QtQuick.Controls.Styles 1.2
import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.1
import QtQuick.Window 2.0
@@ -269,17 +270,12 @@ Dialog {
currentIndex = -1
}
- enabled: !liveUSBData.currentImage.writer.running
+ enabled: !liveUSBData.currentImage.writer.running && liveUSBData.usbDriveNames.length > 0
Row {
- spacing: $(8)
+ spacing: $(6)
anchors.fill: parent
- anchors.leftMargin: $(8)
+ anchors.leftMargin: $(12)
visible: liveUSBData.usbDriveNames.length <= 0
- BusyIndicator {
- anchors.verticalCenter: parent.verticalCenter
- height: parent.height * 0.6
- width: height
- }
Text {
height: parent.height
verticalAlignment: Text.AlignVCenter