mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
parent
4741aab7a3
commit
31c7306bd2
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ namespace
|
||||||
std::unique_ptr<UIThemeSource> createUIThemeSource(const Path &themePath)
|
std::unique_ptr<UIThemeSource> createUIThemeSource(const Path &themePath)
|
||||||
{
|
{
|
||||||
if (themePath.filename() == CONFIG_FILE_NAME)
|
if (themePath.filename() == CONFIG_FILE_NAME)
|
||||||
return std::make_unique<FolderThemeSource>(themePath);
|
return std::make_unique<FolderThemeSource>(themePath.parentPath());
|
||||||
|
|
||||||
if ((themePath.hasExtension(u".qbtheme"_qs))
|
if ((themePath.hasExtension(u".qbtheme"_qs))
|
||||||
&& QResource::registerResource(themePath.data(), u"/uitheme"_qs))
|
&& QResource::registerResource(themePath.data(), u"/uitheme"_qs))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue