feat(App): add an option to the linphonerc to disable calls windows

This commit is contained in:
Ronan Abhamon 2018-05-15 14:28:32 +02:00
parent 9ae752dfcf
commit 39ca751897

View file

@ -282,6 +282,11 @@ QString App::getCommandArgument () {
// -----------------------------------------------------------------------------
QQuickWindow *App::getCallsWindow () {
if (CoreManager::getInstance()->getCore()->getConfig()->getInt(
SettingsModel::UI_SECTION, "disable_calls_window", 0
))
return nullptr;
if (!mCallsWindow)
mCallsWindow = ::createSubWindow(mEngine, cQmlViewCallsWindow);