2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Improve new settings design.

This commit is contained in:
John Preston
2018-09-13 23:09:26 +03:00
parent ffc4cd3415
commit c2039da600
31 changed files with 463 additions and 304 deletions

View File

@@ -86,6 +86,12 @@ void Widget::saveChanges(FnMut<void()> done) {
_inner->sectionSaveChanges(std::move(done));
}
rpl::producer<bool> Widget::desiredShadowVisibility() const {
return (_type == Type::Main || _type == Type::Information)
? ContentWidget::desiredShadowVisibility()
: rpl::single(true);
}
std::unique_ptr<ContentMemento> Widget::doCreateMemento() {
auto result = std::make_unique<Memento>(self(), _type);
saveState(result.get());