mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-30 18:39:23 +00:00
feat(App): display assistant if does not exist proxy config
This commit is contained in:
parent
a6317321c7
commit
dbf6a63649
1 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue