mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-24 17:26:58 +00:00
Added button to generate QR code for self to main section of settings.
This commit is contained in:
parent
fe7f4233b9
commit
bad2dc30c3
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user