Fix theme preview generating

This commit is contained in:
Eric Kotato 2020-06-04 21:13:44 +03:00
parent bf08d83a23
commit 66b5b0ccb2

View file

@ -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);