1
0
Fork 0

Launcher: additional bread-crumbs around catalogs

This commit is contained in:
James Turner 2021-01-01 15:36:41 +00:00
parent 203a9fe918
commit 9e07b57c45
4 changed files with 8 additions and 2 deletions

View file

@ -299,6 +299,7 @@ void AddOnsController::officialCatalogAction(QString s)
QSettings settings;
settings.setValue("hide-official-catalog-message", true);
} else if (s == "add-official") {
flightgear::addSentryBreadcrumb("user requested to add the default catalog", "info");
m_catalogs->installDefaultCatalog(false);
}

View file

@ -145,7 +145,7 @@ void PackageDelegate::catalogRefreshed(CatalogRef aCatalog, StatusCode aReason)
m_model->refreshPackages();
} else if (aReason == FAIL_VERSION) {
// silent about this
} else {
} else if (aCatalog) {
qWarning() << "failed refresh of"
<< QString::fromStdString(aCatalog->url()) << ":" << aReason << endl;
}

View file

@ -35,6 +35,7 @@
// FlightGear
#include <Main/globals.hxx>
#include <Network/HTTPClient.hxx>
#include <Main/sentryIntegration.hxx>
using namespace simgear::pkg;
@ -219,6 +220,7 @@ void CatalogListModel::addCatalogByUrl(QUrl url)
}
m_newlyAddedCatalog = Catalog::createFromUrl(m_packageRoot, url.toString().toStdString());
flightgear::addSentryBreadcrumb("CatalogListModel: Adding catalog " + url.toString().toStdString(), "info");
resetData();
emit isAddingCatalogChanged();
}
@ -247,12 +249,13 @@ void CatalogListModel::finalizeAddCatalog()
return;
}
flightgear::addSentryBreadcrumb("CatalogListModel: finalziing add of:" + m_newlyAddedCatalog->id(), "info");
const int row = static_cast<int>(std::distance(m_catalogs.begin(), it));
m_newlyAddedCatalog.clear();
emit isAddingCatalogChanged();
emit statusOfAddingCatalogChanged();
emit dataChanged(index(row), index(row));
}
void CatalogListModel::abandonAddCatalog()

View file

@ -27,6 +27,7 @@
#include <Main/options.hxx>
#include <Main/fg_init.hxx>
#include <Main/fg_props.hxx>
#include <Main/sentryIntegration.hxx>
#include "AircraftItemModel.hxx"
#include "AircraftProxyModel.hxx"
@ -336,6 +337,7 @@ void LauncherController::restoreAircraft()
void LauncherController::doRun()
{
flightgear::addSentryBreadcrumb("Launcher: fly!", "info");
flightgear::Options* opt = flightgear::Options::sharedInstance();
m_config->reset();
m_config->collect();