Skip to content

Commit

Permalink
fix: size not updated in admin mode.
Browse files Browse the repository at this point in the history
size update timer is not running in admin mode.

Log: as above.

Bug: https://pms.uniontech.com/bug-view-278679.html
Change-Id: I5ae46ce6362656904e2ff5f74afa94d7bcdd45b7
  • Loading branch information
itsXuSt committed Dec 27, 2024
1 parent ba2c7e3 commit f930656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dfm-base/base/device/deviceproxymanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void DeviceProxyManager::reloadOpticalInfo(const QString &id)
bool DeviceProxyManager::initService()
{
d->initConnection();
return true;
return isDBusRuning();
}

bool DeviceProxyManager::isDBusRuning()
Expand Down Expand Up @@ -355,7 +355,7 @@ void DeviceProxyManagerPrivate::addMounts(const QString &id, const QString &mpt)
if (id.startsWith(kBlockDeviceIdPrefix)) {
auto &&info = q->queryBlockInfo(id);
if (info.value(GlobalServerDefines::DeviceProperty::kRemovable).toBool()
&& !DeviceUtils::isSystemDisk(info))
&& !DeviceUtils::isSystemDisk(info))
externalMounts.insert(id, p);
} else {
externalMounts.insert(id, p);
Expand Down

0 comments on commit f930656

Please sign in to comment.