From bad2dc30c39a8b5911e5b142118c295fde2a0b07 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 12 Sep 2024 13:28:10 +0300 Subject: [PATCH] Added button to generate QR code for self to main section of settings. --- Telegram/SourceFiles/info/info_wrap_widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/info/info_wrap_widget.cpp b/Telegram/SourceFiles/info/info_wrap_widget.cpp index b03dc2d97..992f9f495 100644 --- a/Telegram/SourceFiles/info/info_wrap_widget.cpp +++ b/Telegram/SourceFiles/info/info_wrap_widget.cpp @@ -386,7 +386,8 @@ void WrapWidget::setupTopBarMenuToggle() { addProfileCallsButton(); } else if (section.type() == Section::Type::Settings) { 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 self = controller->session().user(); if (!self->username().isEmpty()) {