mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 22:58:15 +00:00
fix(ui/views/App/Main/MainWindow): display correctly auto answer status
This commit is contained in:
parent
f514b2d6e3
commit
d21c6bfe45
2 changed files with 6 additions and 3 deletions
|
|
@ -32,12 +32,12 @@ using namespace std;
|
|||
const string SettingsModel::UI_SECTION("ui");
|
||||
|
||||
SettingsModel::SettingsModel (QObject *parent) : QObject(parent) {
|
||||
// TODO: Uncomment when `getConfig` will be available.
|
||||
// m_config = CoreManager::getInstance()->getCore()->getConfig();
|
||||
m_config = CoreManager::getInstance()->getCore()->getConfig();
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
bool SettingsModel::getAutoAnswerStatus () const {
|
||||
return true; // TODO: See above.
|
||||
return !!m_config->getInt(UI_SECTION, "auto_answer", 0);
|
||||
}
|
||||
|
||||
|
|
@ -46,6 +46,8 @@ void SettingsModel::setAutoAnswerStatus (bool status) {
|
|||
emit autoAnswerStatusChanged(status);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
QString SettingsModel::getFileTransferUrl () const {
|
||||
return ::Utils::linphoneStringToQString(
|
||||
CoreManager::getInstance()->getCore()->getFileTransferServer()
|
||||
|
|
|
|||
|
|
@ -183,6 +183,7 @@ Controls1.ApplicationWindow {
|
|||
color: MainWindowStyle.autoAnswerStatus.text.color
|
||||
font.pointSize: MainWindowStyle.autoAnswerStatus.text.fontSize
|
||||
text: qsTr('autoAnswerStatus')
|
||||
visible: SettingsModel.autoAnswerStatus
|
||||
width: parent.width
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue