mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
Rename "fromNativePath" to "toUniformPath"
Unlike "toNativePath" which name clearly reflects the function result "fromNativePath" has no such clear meaning. Since this function converts path into uniform format "toUniformPath" is better name.
This commit is contained in:
@@ -329,9 +329,9 @@ void ScanFoldersModel::makePersistent()
|
||||
|
||||
for (const PathData *pathData : asConst(m_pathList)) {
|
||||
if (pathData->downloadType == CUSTOM_LOCATION)
|
||||
dirs.insert(Utils::Fs::fromNativePath(pathData->watchPath), Utils::Fs::fromNativePath(pathData->downloadPath));
|
||||
dirs.insert(Utils::Fs::toUniformPath(pathData->watchPath), Utils::Fs::toUniformPath(pathData->downloadPath));
|
||||
else
|
||||
dirs.insert(Utils::Fs::fromNativePath(pathData->watchPath), pathData->downloadType);
|
||||
dirs.insert(Utils::Fs::toUniformPath(pathData->watchPath), pathData->downloadType);
|
||||
}
|
||||
|
||||
Preferences::instance()->setScanDirs(dirs);
|
||||
|
||||
Reference in New Issue
Block a user