Added button to generate QR code for self to main section of settings.

This commit is contained in:
23rd 2024-09-12 13:28:10 +03:00
parent fe7f4233b9
commit bad2dc30c3

View file

@ -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()) {