Commit dbf6a636 authored by Ronan's avatar Ronan

feat(App): display assistant if does not exist proxy config

parent a6317321
......@@ -602,12 +602,9 @@ void App::openAppAfterInit (bool mustBeIconified) {
smartShowWindow(mainWindow);
#endif // ifndef __APPLE__
// Display Assistant if it's the first time app launch.
shared_ptr<linphone::Config> config(CoreManager::getInstance()->getCore()->getConfig());
if (config->getInt(SettingsModel::UiSection, "force_assistant_at_startup", 1)) {
// Display Assistant if it does not exist proxy config.
if (CoreManager::getInstance()->getCore()->getProxyConfigList().empty())
QMetaObject::invokeMethod(mainWindow, "setView", Q_ARG(QVariant, "Assistant"), Q_ARG(QVariant, QString("")));
config->setInt(SettingsModel::UiSection, "force_assistant_at_startup", 0);
}
#ifdef ENABLE_UPDATE_CHECK
QTimer *timer = new QTimer(mEngine);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment