Skip to content

Commit

Permalink
fix: [detail] no infos in smb's detail view.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsXuSt committed Jan 23, 2024
1 parent 3fcd1a1 commit 99743fc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <dfm-base/dfm_global_defines.h>
#include <dfm-base/utils/universalutils.h>
#include <dfm-base/mimetype/mimetypedisplaymanager.h>

using namespace dfmplugin_smbbrowser;
DFMBASE_USE_NAMESPACE
Expand Down Expand Up @@ -45,13 +46,13 @@ QString SmbShareFileInfo::displayOf(const DisPlayInfoType type) const
return QObject::tr("Computers in LAN");

if (isSmbRoot)
return QObject::tr("Shared directories on %1").arg(url.host());
return url.host();

return d->fileName();
}

if (DisPlayInfoType::kMimeTypeDisplayName == type)
return QObject::tr("Network shared directory");
return MimeTypeDisplayManager::instance()->displayName("inode/directory");

return FileInfo::displayOf(type);
}
Expand Down

0 comments on commit 99743fc

Please sign in to comment.