mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Added button to generate QR code for self to main section of settings.
This commit is contained in:
@@ -386,7 +386,8 @@ void WrapWidget::setupTopBarMenuToggle() {
|
|||||||
addProfileCallsButton();
|
addProfileCallsButton();
|
||||||
} else if (section.type() == Section::Type::Settings) {
|
} else if (section.type() == Section::Type::Settings) {
|
||||||
addTopBarMenuButton();
|
addTopBarMenuButton();
|
||||||
if (section.settingsType() == ::Settings::Information::Id()) {
|
if (section.settingsType() == ::Settings::Information::Id()
|
||||||
|
|| section.settingsType() == ::Settings::Main::Id()) {
|
||||||
const auto controller = _controller->parentController();
|
const auto controller = _controller->parentController();
|
||||||
const auto self = controller->session().user();
|
const auto self = controller->session().user();
|
||||||
if (!self->username().isEmpty()) {
|
if (!self->username().isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user