mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02: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();
|
||||
} 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()) {
|
||||
|
||||
Reference in New Issue
Block a user