diff --git a/settingswidget.cpp b/settingswidget.cpp index a5c9cd706560bf9bb39f6d38bad7a50a177de02c..3294c93411c8b3f5c549871bc0b88e29a5307b68 100644 --- a/settingswidget.cpp +++ b/settingswidget.cpp @@ -440,6 +440,11 @@ void SettingsWidget::updateAccountInfoDisplayed() auto& accInfo = LRCInstance::getCurrentAccountInfo(); auto accConfig = LRCInstance::accountModel().getAccountConfig(LRCInstance::getCurrAccId()); + bool showLocalAccountConfig = accConfig.managerUri.empty(); + ui->passwdPushButton->setVisible(showLocalAccountConfig); + ui->btnExportAccount->setVisible(showLocalAccountConfig); + ui->linkDevPushButton->setVisible(showLocalAccountConfig); + ui->usernameSIP->setText(QString::fromStdString(accConfig.username)); ui->hostnameSIP->setText(QString::fromStdString(accConfig.hostname)); ui->passSIPlineEdit->setText(QString::fromStdString(accConfig.password)); @@ -766,7 +771,9 @@ void SettingsWidget::updateAndShowDevicesSlot() { ui->settingsListWidget->clear(); - ui->linkDevPushButton->show(); + if (LRCInstance::getCurrAccConfig().managerUri.empty()) { + ui->linkDevPushButton->show(); + } auto deviceList = LRCInstance::getCurrentAccountInfo().deviceModel->getAllDevices(); diff --git a/settingswidget.ui b/settingswidget.ui index 4198f39ee2d061770e664afe69da5929e8478ee2..92ec02b597ad35a530fb6f4c0de6174039c46699 100644 --- a/settingswidget.ui +++ b/settingswidget.ui @@ -376,7 +376,7 @@ </size> </property> <property name="currentIndex"> - <number>3</number> + <number>1</number> </property> <widget class="QWidget" name="generalSettings"> <property name="sizePolicy"> @@ -1416,7 +1416,7 @@ <rect> <x>0</x> <y>0</y> - <width>705</width> + <width>749</width> <height>1387</height> </rect> </property> @@ -1913,7 +1913,7 @@ </layout> </item> <item> - <spacer name="verticalSpacer_30"> + <spacer name="verticalSpacerBetweenlblRegisteredNameAndChangePassButton"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> @@ -1975,7 +1975,7 @@ <property name="sizeHint" stdset="0"> <size> <width>40</width> - <height>20</height> + <height>0</height> </size> </property> </spacer> @@ -2016,7 +2016,7 @@ <property name="sizeHint" stdset="0"> <size> <width>40</width> - <height>20</height> + <height>0</height> </size> </property> </spacer> @@ -2085,7 +2085,7 @@ </spacer> </item> <item> - <layout class="QVBoxLayout" name="verticalLayout_18"> + <layout class="QVBoxLayout" name="linkedDeviceVerticalLayout"> <property name="topMargin"> <number>0</number> </property> @@ -4255,12 +4255,6 @@ <header>iconbutton.h</header> <container>1</container> </customwidget> - <customwidget> - <class>PhotoboothWidget</class> - <extends>QWidget</extends> - <header>photoboothwidget.h</header> - <container>1</container> - </customwidget> <customwidget> <class>LevelMeter</class> <extends>QWidget</extends>