mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
Add support for recentlyused: kio to view properties.
Add "recentlyused" to the URL schemes recognised by ViewProperties as needing special handling. User-set view properties for the recentlyused: kio are then saved under view_properties/recentlyused in dolphin's app data directory. (Previously, the recentlyused: kio was treated, by default, as if it was a remote location for the purposes of view properties. Since it displays somewhat specialised results (files/directories from various locations), users might find it useful to set particular view properties and have them remembered.)
This commit is contained in:
parent
c1200b3ddb
commit
769d147026
|
@ -55,6 +55,9 @@ ViewProperties::ViewProperties(const QUrl& url) :
|
|||
} else if (url.scheme() == QLatin1String("recentdocuments")) {
|
||||
m_filePath = destinationDir(QStringLiteral("recentdocuments"));
|
||||
useRecentDocumentsView = true;
|
||||
} else if (url.scheme() == QLatin1String("recentlyused")) {
|
||||
m_filePath = destinationDir(QStringLiteral("recentlyused"));
|
||||
useRecentDocumentsView = true;
|
||||
} else if (url.isLocalFile()) {
|
||||
m_filePath = url.toLocalFile();
|
||||
|
||||
|
|
Loading…
Reference in a new issue