Fix mount disk

This commit is contained in:
cutefishd 2021-04-19 04:30:00 +08:00
parent 2e731edefd
commit 04a6e5028c
2 changed files with 3 additions and 3 deletions

View file

@ -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());
}

View file

@ -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
}