mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Improve Profile handling
Add Profile::rootPath and Profile::configurationName properties.
This commit is contained in:
@@ -45,7 +45,7 @@ Profile::Profile(const QString &rootProfilePath, const QString &configurationNam
|
||||
ensureDirectoryExists(SpecialFolder::Data);
|
||||
|
||||
if (convertPathsToProfileRelative)
|
||||
m_pathConverterImpl = std::make_unique<Private::Converter>(m_profileImpl->baseDirectory());
|
||||
m_pathConverterImpl = std::make_unique<Private::Converter>(m_profileImpl->basePath());
|
||||
else
|
||||
m_pathConverterImpl = std::make_unique<Private::NoConvertConverter>();
|
||||
}
|
||||
@@ -93,6 +93,16 @@ QString Profile::location(const SpecialFolder folder) const
|
||||
return result;
|
||||
}
|
||||
|
||||
QString Profile::rootPath() const
|
||||
{
|
||||
return m_profileImpl->rootPath();
|
||||
}
|
||||
|
||||
QString Profile::configurationName() const
|
||||
{
|
||||
return m_profileImpl->configurationName();
|
||||
}
|
||||
|
||||
QString Profile::profileName() const
|
||||
{
|
||||
return m_profileImpl->profileName();
|
||||
|
||||
Reference in New Issue
Block a user