mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
@@ -14,6 +14,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "boxes/passcode_box.h"
|
||||
#include "lang/lang_keys.h"
|
||||
#include "main/main_session.h"
|
||||
#include "ui/rect.h"
|
||||
#include "ui/widgets/checkbox.h"
|
||||
#include "ui/widgets/labels.h"
|
||||
#include "ui/text/text_utilities.h"
|
||||
@@ -148,6 +149,8 @@ void SelfDestructionBox::showContent() {
|
||||
: tr::lng_self_destruct_sessions_description(tr::now)),
|
||||
st::boxLabel);
|
||||
_description->moveToLeft(st::boxPadding.left(), y);
|
||||
_description->resizeToWidth(st::boxWidth
|
||||
- rect::m::sum::h(st::boxPadding));
|
||||
y += _description->height() + st::boxMediumSkip;
|
||||
|
||||
for (const auto value : _ttlValues) {
|
||||
@@ -200,6 +203,8 @@ void SelfDestructionBox::prepare() {
|
||||
? tr::lng_self_destruct_description(tr::now)
|
||||
: tr::lng_self_destruct_sessions_description(tr::now)),
|
||||
st::boxLabel);
|
||||
fake->resizeToWidth(st::boxWidth
|
||||
- rect::m::sum::h(st::boxPadding));
|
||||
const auto boxHeight = st::boxOptionListPadding.top()
|
||||
+ fake->height() + st::boxMediumSkip
|
||||
+ (_ttlValues.size()
|
||||
|
||||
Reference in New Issue
Block a user