Rename General->Advanced in Settings.

This commit is contained in:
John Preston 2018-09-20 19:47:02 +03:00
parent 1ffbec0215
commit 04dd4e30a8
12 changed files with 14 additions and 14 deletions

View File

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

View File

Before

Width:  |  Height:  |  Size: 566 B

After

Width:  |  Height:  |  Size: 566 B

View File

@ -2132,7 +2132,7 @@ void UpdateApplication() {
controller->showSection(
Info::Memento(
Info::Settings::Tag{ Auth().user() },
Info::Section::SettingsType::General),
Info::Section::SettingsType::Advanced),
Window::SectionShow());
} else {
window->showSpecialLayer(

View File

@ -608,7 +608,7 @@ rpl::producer<QString> TitleValue(
return lng_settings_section_notify;
case Section::SettingsType::PrivacySecurity:
return lng_settings_section_privacy;
case Section::SettingsType::General:
case Section::SettingsType::Advanced:
return lng_settings_advanced;
case Section::SettingsType::Chat:
return lng_settings_section_chat_settings;

View File

@ -48,7 +48,7 @@ settingsDividerLabelPadding: margins(22px, 10px, 22px, 19px);
settingsIconInformation: icon {{ "settings_information", menuIconFg }};
settingsIconNotifications: icon {{ "settings_notifications", menuIconFg }};
settingsIconChat: icon {{ "settings_chat", menuIconFg }};
settingsIconGeneral: icon {{ "settings_general", menuIconFg }};
settingsIconGeneral: icon {{ "settings_advanced", menuIconFg }};
settingsIconPrivacySecurity: icon {{ "settings_privacy_security", menuIconFg }};
settingsIconLanguage: icon {{ "settings_language", menuIconFg }};
settingsIconInterfaceScale: icon {{ "settings_interface_scale", menuIconFg }};

View File

@ -5,7 +5,7 @@ the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "settings/settings_general.h"
#include "settings/settings_advanced.h"
#include "settings/settings_common.h"
#include "settings/settings_chat.h"

View File

@ -18,9 +18,9 @@ void SetupUpdate(not_null<Ui::VerticalLayout*> container);
bool HasTray();
void SetupTray(not_null<Ui::VerticalLayout*> container);
class General : public Section {
class Advanced : public Section {
public:
explicit General(QWidget *parent, UserData *self = nullptr);
explicit Advanced(QWidget *parent, UserData *self = nullptr);
private:
void setupContent();

View File

@ -8,7 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "settings/settings_common.h"
#include "settings/settings_chat.h"
#include "settings/settings_general.h"
#include "settings/settings_advanced.h"
#include "settings/settings_information.h"
#include "settings/settings_main.h"
#include "settings/settings_notifications.h"
@ -39,8 +39,8 @@ object_ptr<Section> CreateSection(
return object_ptr<Notifications>(parent, self);
case Type::PrivacySecurity:
return object_ptr<PrivacySecurity>(parent, self);
case Type::General:
return object_ptr<General>(parent, self);
case Type::Advanced:
return object_ptr<Advanced>(parent, self);
case Type::Chat:
return object_ptr<Chat>(parent, self);
}

View File

@ -36,7 +36,7 @@ enum class Type {
Information,
Notifications,
PrivacySecurity,
General,
Advanced,
Chat,
};

View File

@ -8,7 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "settings/settings_intro.h"
#include "settings/settings_common.h"
#include "settings/settings_general.h"
#include "settings/settings_advanced.h"
#include "settings/settings_main.h"
#include "settings/settings_chat.h"
#include "settings/settings_codes.h"

View File

@ -76,7 +76,7 @@ void SetupSections(
&st::settingsIconChat);
addSection(
lng_settings_advanced,
Type::General,
Type::Advanced,
&st::settingsIconGeneral);
SetupLanguageButton(container);

View File

@ -534,14 +534,14 @@
<(src_loc)/profile/profile_channel_controllers.h
<(src_loc)/profile/profile_cover_drop_area.cpp
<(src_loc)/profile/profile_cover_drop_area.h
<(src_loc)/settings/settings_advanced.cpp
<(src_loc)/settings/settings_advanced.h
<(src_loc)/settings/settings_chat.cpp
<(src_loc)/settings/settings_chat.h
<(src_loc)/settings/settings_codes.cpp
<(src_loc)/settings/settings_codes.h
<(src_loc)/settings/settings_common.cpp
<(src_loc)/settings/settings_common.h
<(src_loc)/settings/settings_general.cpp
<(src_loc)/settings/settings_general.h
<(src_loc)/settings/settings_information.cpp
<(src_loc)/settings/settings_information.h
<(src_loc)/settings/settings_intro.cpp