if account in remote provisioning, switch to main page even if it is not connected yet (we can add an account without a password and ask for it after)

This commit is contained in:
Gaelle Braud 2025-12-17 16:08:42 +01:00
parent c0c369e93e
commit ccd6004e34
4 changed files with 32 additions and 28 deletions

View file

@ -408,7 +408,7 @@ void App::setSelf(QSharedPointer<App>(me)) {
// if (accountConnected)
if (mPossiblyLookForAddedAccount) {
QMetaObject::invokeMethod(mMainWindow, "openMainPage", Qt::DirectConnection,
Q_ARG(QVariant, accountConnected));
Q_ARG(QVariant, true));
}
mPossiblyLookForAddedAccount = false;
});
@ -711,6 +711,10 @@ void App::initCore() {
});
} else {
mPossiblyLookForAddedAccount = true;
if (mAccountList && mAccountList->getCount() > 0) {
QMetaObject::invokeMethod(mMainWindow, "openMainPage", Qt::DirectConnection,
Q_ARG(QVariant, true));
}
}
}
checkForUpdate();

View file

@ -735,51 +735,51 @@
<translation>nicht erreichbar</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="982"/>
<location filename="../../core/App.cpp" line="986"/>
<source>application_description</source>
<extracomment>&quot;A free and open source SIP video-phone.&quot;</extracomment>
<translation>Ein kostenloses Open-Source SIP Video-Telefon.</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="984"/>
<location filename="../../core/App.cpp" line="988"/>
<source>command_line_arg_order</source>
<extracomment>&quot;Send an order to the application towards a command line&quot;</extracomment>
<translation>Kommandozeilen-Befehl an die Anwendung schicken</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="988"/>
<location filename="../../core/App.cpp" line="992"/>
<source>command_line_option_show_help</source>
<translation>Zeige Hilfe</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="993"/>
<location filename="../../core/App.cpp" line="997"/>
<source>command_line_option_show_app_version</source>
<translation>App-Version anzeigen</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1001"/>
<location filename="../../core/App.cpp" line="1005"/>
<source>command_line_option_config_to_fetch</source>
<extracomment>&quot;Specify the linphone configuration file to be fetched. It will be merged with the current configuration.&quot;</extracomment>
<translation>Abzurufende Linphone-Konfigurationsdatei angeben. Sie wird mit der aktuellen Konfiguration zusammengeführt.</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1003"/>
<location filename="../../core/App.cpp" line="1007"/>
<source>command_line_option_config_to_fetch_arg</source>
<extracomment>&quot;URL, path or file&quot;</extracomment>
<translation>URL, Pfad oder Datei</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1008"/>
<location filename="../../core/App.cpp" line="1012"/>
<source>command_line_option_minimized</source>
<translation>Minimieren</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1011"/>
<location filename="../../core/App.cpp" line="1015"/>
<source>command_line_option_log_to_stdout</source>
<translation>Debug-Informationen auf der Standardausgabe ausgeben</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1014"/>
<location filename="../../core/App.cpp" line="1018"/>
<source>command_line_option_print_app_logs_only</source>
<extracomment>&quot;Print only logs from the application&quot;</extracomment>
<translation>Nur Anwendungs-Logs ausgeben</translation>

View file

@ -716,51 +716,51 @@
<translation>not reachable</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="982"/>
<location filename="../../core/App.cpp" line="986"/>
<source>application_description</source>
<extracomment>&quot;A free and open source SIP video-phone.&quot;</extracomment>
<translation>A free and open source SIP video-phone.</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="984"/>
<location filename="../../core/App.cpp" line="988"/>
<source>command_line_arg_order</source>
<extracomment>&quot;Send an order to the application towards a command line&quot;</extracomment>
<translation>Send an order to the application towards a command line</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="988"/>
<location filename="../../core/App.cpp" line="992"/>
<source>command_line_option_show_help</source>
<translation>Show this help</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="993"/>
<location filename="../../core/App.cpp" line="997"/>
<source>command_line_option_show_app_version</source>
<translation>Show app version</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1001"/>
<location filename="../../core/App.cpp" line="1005"/>
<source>command_line_option_config_to_fetch</source>
<extracomment>&quot;Specify the linphone configuration file to be fetched. It will be merged with the current configuration.&quot;</extracomment>
<translation>Specify the linphone configuration file to be fetched. It will be merged with the current configuration.</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1003"/>
<location filename="../../core/App.cpp" line="1007"/>
<source>command_line_option_config_to_fetch_arg</source>
<extracomment>&quot;URL, path or file&quot;</extracomment>
<translation>URL, path or file</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1008"/>
<location filename="../../core/App.cpp" line="1012"/>
<source>command_line_option_minimized</source>
<translation>Minimize</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1011"/>
<location filename="../../core/App.cpp" line="1015"/>
<source>command_line_option_log_to_stdout</source>
<translation>Log to stdout some debug information while running</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1014"/>
<location filename="../../core/App.cpp" line="1018"/>
<source>command_line_option_print_app_logs_only</source>
<extracomment>&quot;Print only logs from the application&quot;</extracomment>
<translation>Print only logs from the application</translation>

View file

@ -711,51 +711,51 @@
<translation>indisponible</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="982"/>
<location filename="../../core/App.cpp" line="986"/>
<source>application_description</source>
<extracomment>&quot;A free and open source SIP video-phone.&quot;</extracomment>
<translation>A free and open source SIP video-phone.</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="984"/>
<location filename="../../core/App.cpp" line="988"/>
<source>command_line_arg_order</source>
<extracomment>&quot;Send an order to the application towards a command line&quot;</extracomment>
<translation>Send an order to the application towards a command line</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="988"/>
<location filename="../../core/App.cpp" line="992"/>
<source>command_line_option_show_help</source>
<translation>Show this help</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="993"/>
<location filename="../../core/App.cpp" line="997"/>
<source>command_line_option_show_app_version</source>
<translation>Afficher la version de l&apos;application</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1001"/>
<location filename="../../core/App.cpp" line="1005"/>
<source>command_line_option_config_to_fetch</source>
<extracomment>&quot;Specify the linphone configuration file to be fetched. It will be merged with the current configuration.&quot;</extracomment>
<translation>Specify the linphone configuration file to be fetched. It will be merged with the current configuration.</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1003"/>
<location filename="../../core/App.cpp" line="1007"/>
<source>command_line_option_config_to_fetch_arg</source>
<extracomment>&quot;URL, path or file&quot;</extracomment>
<translation>URL, path or file</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1008"/>
<location filename="../../core/App.cpp" line="1012"/>
<source>command_line_option_minimized</source>
<translation>Minimiser</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1011"/>
<location filename="../../core/App.cpp" line="1015"/>
<source>command_line_option_log_to_stdout</source>
<translation>Log to stdout some debug information while running</translation>
</message>
<message>
<location filename="../../core/App.cpp" line="1014"/>
<location filename="../../core/App.cpp" line="1018"/>
<source>command_line_option_print_app_logs_only</source>
<extracomment>&quot;Print only logs from the application&quot;</extracomment>
<translation>Print only logs from the application</translation>