Browse Source

Correctly load folder based UI theme

PR #18173.
adaptive-webui-19844
Vladimir Golovnev 2 years ago committed by GitHub
parent
commit
31c7306bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/gui/uithememanager.cpp

2
src/gui/uithememanager.cpp

@ -140,7 +140,7 @@ namespace @@ -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))

Loading…
Cancel
Save