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

Move support to the main settings (support).

This commit is contained in:
John Preston
2018-10-07 14:42:09 +03:00
parent 1b4f3a7529
commit 6ba0755e15
4 changed files with 19 additions and 12 deletions

View File

@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "settings/settings_common.h"
#include "settings/settings_codes.h"
#include "settings/settings_chat.h"
#include "boxes/language_box.h"
#include "boxes/confirm_box.h"
#include "boxes/about_box.h"
@@ -63,10 +64,17 @@ void SetupSections(
icon
)->addClickHandler([=] { showOther(type); });
};
addSection(
lng_settings_information,
Type::Information,
&st::settingsIconInformation);
if (Auth().supportMode()) {
SetupSupport(container);
AddDivider(container);
AddSkip(container);
} else {
addSection(
lng_settings_information,
Type::Information,
&st::settingsIconInformation);
}
addSection(
lng_settings_section_notify,
Type::Notifications,