2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Save wallpaper information.

This commit is contained in:
John Preston
2019-01-16 21:26:26 +04:00
parent b8cb792831
commit 466c6da5e3
8 changed files with 211 additions and 159 deletions

View File

@@ -358,7 +358,7 @@ void DefaultTheme::checkedChangedHook(anim::type animated) {
}
void ChooseFromFile(not_null<QWidget*> parent) {
const auto imgExtensions = cImgExtensions();
const auto &imgExtensions = cImgExtensions();
auto filters = QStringList(
qsl("Theme files (*.tdesktop-theme *.tdesktop-palette *")
+ imgExtensions.join(qsl(" *"))
@@ -401,7 +401,7 @@ void ChooseFromFile(not_null<QWidget*> parent) {
}
Window::Theme::Background()->setImage(
Window::Theme::kCustomBackground,
{ Window::Theme::kCustomBackground },
std::move(image));
Window::Theme::Background()->setTile(false);
};