mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Improve automatic media download box design.
This commit is contained in:
@@ -94,8 +94,6 @@ EditPrivacyBox::EditPrivacyBox(
|
||||
void EditPrivacyBox::prepare() {
|
||||
_controller->setView(this);
|
||||
|
||||
setTitle([=] { return _controller->title(); });
|
||||
|
||||
setupContent();
|
||||
}
|
||||
|
||||
@@ -229,6 +227,8 @@ Ui::FlatLabel *EditPrivacyBox::AddLabel(
|
||||
void EditPrivacyBox::setupContent() {
|
||||
using namespace Settings;
|
||||
|
||||
setTitle([=] { return _controller->title(); });
|
||||
|
||||
auto wrap = object_ptr<Ui::VerticalLayout>(this);
|
||||
const auto content = wrap.data();
|
||||
setInnerWidget(object_ptr<Ui::OverrideMargins>(
|
||||
|
Reference in New Issue
Block a user