1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Correctly load folder based UI theme

PR #18173.
This commit is contained in:
Vladimir Golovnev 2022-12-08 08:33:55 +03:00 committed by GitHub
parent 4741aab7a3
commit 31c7306bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ namespace
std::unique_ptr<UIThemeSource> createUIThemeSource(const Path &themePath)
{
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))
&& QResource::registerResource(themePath.data(), u"/uitheme"_qs))