From 04a6e5028c7f4b18bc1cde9fafdd00ea8386ba13 Mon Sep 17 00:00:00 2001 From: cutefishd Date: Mon, 19 Apr 2021 04:30:00 +0800 Subject: [PATCH] Fix mount disk --- model/placesitem.cpp | 2 +- qml/FolderPage.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/model/placesitem.cpp b/model/placesitem.cpp index dbc1e5a..2e2476c 100644 --- a/model/placesitem.cpp +++ b/model/placesitem.cpp @@ -117,7 +117,7 @@ void PlacesItem::updateDeviceInfo(const QString &udi) m_displayName = m_device.displayName(); if (m_access) { - // m_url = m_access->filePath(); + m_url = QUrl::fromLocalFile(m_access->filePath()); connect(m_access.data(), &Solid::StorageAccess::accessibilityChanged, this, &PlacesItem::onAccessibilityChanged); onAccessibilityChanged(m_access->isAccessible()); } diff --git a/qml/FolderPage.qml b/qml/FolderPage.qml index 32035a2..1089ff3 100644 --- a/qml/FolderPage.qml +++ b/qml/FolderPage.qml @@ -24,8 +24,8 @@ Item { Rectangle { id: _background anchors.fill: parent - anchors.rightMargin: FishUI.Theme.smallRadius - anchors.bottomMargin: FishUI.Theme.smallRadius + anchors.rightMargin: FishUI.Units.smallSpacing * 1.5 + anchors.bottomMargin: FishUI.Units.smallSpacing * 1.5 radius: FishUI.Theme.smallRadius color: FishUI.Theme.backgroundColor }