added message if trying to open ubx directly (linux + windows)

preferencesAboutTextFull
Clément Fauconnier 3 years ago
parent bcdeb3e03f
commit 095d4f748b
  1. 9
      src/core/UBApplication.cpp

@ -357,8 +357,13 @@ int UBApplication::exec(const QString& pFileToImport)
applicationController->initScreenLayout(bUseMultiScreen);
boardController->setupLayout();
if (pFileToImport.length() > 0 && !pFileToImport.endsWith("ubx"))
UBApplication::applicationController->importFile(pFileToImport);
if (pFileToImport.length() > 0)
{
if (!pFileToImport.endsWith("ubx"))
applicationController->importFile(pFileToImport);
else
applicationController->showMessage(tr("Cannot open your UBX file directly. Please import it in Documents mode instead"), false);
}
if (UBSettings::settings()->appStartMode->get().toInt())
applicationController->showDesktop();

Loading…
Cancel
Save