Added button to generate QR code for self to main section of settings.
This commit is contained in:
parent
fe7f4233b9
commit
bad2dc30c3
1 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue