Launcher: additional bread-crumbs around catalogs
This commit is contained in:
parent
203a9fe918
commit
9e07b57c45
4 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue