Fix theme preview generating
This commit is contained in:
parent
bf08d83a23
commit
66b5b0ccb2
1 changed files with 2 additions and 1 deletions
|
|
@ -58,7 +58,8 @@ enum class FileType {
|
|||
} else if (type == FileType::AnimatedSticker) {
|
||||
return Lottie::ReadThumbnail(Lottie::ReadContent(data, path));
|
||||
} else if (type == FileType::Theme) {
|
||||
return Window::Theme::GeneratePreview(data, path);
|
||||
auto langStrings = Window::Theme::CollectStrings();
|
||||
return Window::Theme::GeneratePreview(data, path, langStrings);
|
||||
}
|
||||
auto buffer = QBuffer(&data);
|
||||
auto file = QFile(path);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue