mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Move shortcuts settings lower.
This commit is contained in:
@@ -834,8 +834,7 @@ void SetupStickersEmoji(
|
|||||||
|
|
||||||
void SetupMessages(
|
void SetupMessages(
|
||||||
not_null<Window::SessionController*> controller,
|
not_null<Window::SessionController*> controller,
|
||||||
not_null<Ui::VerticalLayout*> container,
|
not_null<Ui::VerticalLayout*> container) {
|
||||||
Fn<void(Type)> showOther) {
|
|
||||||
Ui::AddDivider(container);
|
Ui::AddDivider(container);
|
||||||
Ui::AddSkip(container);
|
Ui::AddSkip(container);
|
||||||
|
|
||||||
@@ -1005,8 +1004,17 @@ void SetupMessages(
|
|||||||
Core::App().saveSettingsDelayed();
|
Core::App().saveSettingsDelayed();
|
||||||
}, inner->lifetime());
|
}, inner->lifetime());
|
||||||
|
|
||||||
|
Ui::AddSkip(inner);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetupArchive(
|
||||||
|
not_null<Window::SessionController*> controller,
|
||||||
|
not_null<Ui::VerticalLayout*> container,
|
||||||
|
Fn<void(Type)> showOther) {
|
||||||
|
Ui::AddSkip(container);
|
||||||
|
|
||||||
AddButtonWithIcon(
|
AddButtonWithIcon(
|
||||||
inner,
|
container,
|
||||||
tr::lng_settings_shortcuts(),
|
tr::lng_settings_shortcuts(),
|
||||||
st::settingsButton,
|
st::settingsButton,
|
||||||
{ &st::menuIconShortcut }
|
{ &st::menuIconShortcut }
|
||||||
@@ -1014,14 +1022,6 @@ void SetupMessages(
|
|||||||
showOther(Shortcuts::Id());
|
showOther(Shortcuts::Id());
|
||||||
});
|
});
|
||||||
|
|
||||||
Ui::AddSkip(inner);
|
|
||||||
}
|
|
||||||
|
|
||||||
void SetupArchive(
|
|
||||||
not_null<Window::SessionController*> controller,
|
|
||||||
not_null<Ui::VerticalLayout*> container) {
|
|
||||||
Ui::AddSkip(container);
|
|
||||||
|
|
||||||
PreloadArchiveSettings(&controller->session());
|
PreloadArchiveSettings(&controller->session());
|
||||||
AddButtonWithIcon(
|
AddButtonWithIcon(
|
||||||
container,
|
container,
|
||||||
@@ -1804,10 +1804,10 @@ void Chat::setupContent(not_null<Window::SessionController*> controller) {
|
|||||||
SetupCloudThemes(controller, content);
|
SetupCloudThemes(controller, content);
|
||||||
SetupChatBackground(controller, content);
|
SetupChatBackground(controller, content);
|
||||||
SetupStickersEmoji(controller, content);
|
SetupStickersEmoji(controller, content);
|
||||||
SetupMessages(controller, content, showOtherMethod());
|
SetupMessages(controller, content);
|
||||||
Ui::AddDivider(content);
|
Ui::AddDivider(content);
|
||||||
SetupSensitiveContent(controller, content, std::move(updateOnTick));
|
SetupSensitiveContent(controller, content, std::move(updateOnTick));
|
||||||
SetupArchive(controller, content);
|
SetupArchive(controller, content, showOtherMethod());
|
||||||
|
|
||||||
Ui::ResizeFitChild(this, content);
|
Ui::ResizeFitChild(this, content);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user