mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c56786683f | ||
|
|
bea0b1a7d1 | ||
|
|
92e7ed0d23 | ||
|
|
98e3931ad0 | ||
|
|
193117646e |
@@ -57,7 +57,28 @@ GcUpgrade::upgrade(const QDir &home)
|
||||
double weight_ = appsettings->cvalue(home.dirName(), GC_WEIGHT, "75.0").toString().toDouble();
|
||||
if (weight_ <= 0.00) appsettings->setCValue(home.dirName(), GC_WEIGHT, "75.0");
|
||||
|
||||
// 5. Set latest version - so only tries to upgrade once
|
||||
// 5. startup with common sidebars shown (less ugly)
|
||||
appsettings->setCValue(home.dirName(), "splitter/LTM/hide", true);
|
||||
appsettings->setCValue(home.dirName(), "splitter/LTM/hide/0", false);
|
||||
appsettings->setCValue(home.dirName(), "splitter/LTM/hide/1", false);
|
||||
appsettings->setCValue(home.dirName(), "splitter/LTM/hide/2", false);
|
||||
appsettings->setCValue(home.dirName(), "splitter/LTM/hide/3", true);
|
||||
appsettings->setCValue(home.dirName(), "splitter/analysis/hide", true);
|
||||
appsettings->setCValue(home.dirName(), "splitter/analysis/hide/0", false);
|
||||
appsettings->setCValue(home.dirName(), "splitter/analysis/hide/1", true);
|
||||
appsettings->setCValue(home.dirName(), "splitter/analysis/hide/2", false);
|
||||
appsettings->setCValue(home.dirName(), "splitter/analysis/hide/3", true);
|
||||
appsettings->setCValue(home.dirName(), "splitter/diary/hide", true);
|
||||
appsettings->setCValue(home.dirName(), "splitter/diary/hide/0", false);
|
||||
appsettings->setCValue(home.dirName(), "splitter/diary/hide/1", false);
|
||||
appsettings->setCValue(home.dirName(), "splitter/diary/hide/2", true);
|
||||
appsettings->setCValue(home.dirName(), "splitter/train/hide", true);
|
||||
appsettings->setCValue(home.dirName(), "splitter/train/hide/0", false);
|
||||
appsettings->setCValue(home.dirName(), "splitter/train/hide/1", false);
|
||||
appsettings->setCValue(home.dirName(), "splitter/train/hide/2", false);
|
||||
appsettings->setCValue(home.dirName(), "splitter/train/hide/3", false);
|
||||
|
||||
// FINALLY -- Set latest version - so only tries to upgrade once
|
||||
appsettings->setCValue(home.dirName(), GC_VERSION_USED, VERSION_LATEST);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
// 3001 - V3 RC1
|
||||
// 3002 - V3 RC2
|
||||
// 3003 - V3 RC3
|
||||
// 3004 - V3 RC4
|
||||
// 300n - V3 RCn
|
||||
// 3004 - V3 RC4 / 4X
|
||||
// 3005 - V3 RC5 / 5X
|
||||
// 3010 - V3.0 Full Release
|
||||
// 3011 - V3.0 SP1
|
||||
// 301n - V3.0 SPn
|
||||
@@ -35,8 +35,8 @@
|
||||
// 310n - V3.1 RCn
|
||||
//
|
||||
|
||||
#define VERSION_LATEST 3004
|
||||
#define VERSION_STRING "V3.0 RC4"
|
||||
#define VERSION_LATEST 3005
|
||||
#define VERSION_STRING "V3.0 RC5X"
|
||||
|
||||
class GcUpgrade
|
||||
{
|
||||
|
||||
@@ -193,8 +193,10 @@ void MetricAggregator::refreshMetrics(QDateTime forceAfterThisDate)
|
||||
dbaccess->connection().commit();
|
||||
|
||||
#ifdef GC_HAVE_LUCENE
|
||||
#ifndef WIN32 // windows crashes here....
|
||||
out << "OPTIMISE: " << QDateTime::currentDateTime().toString() + "\r\n";
|
||||
main->lucene->optimise();
|
||||
#endif
|
||||
#endif
|
||||
main->isclean = true;
|
||||
|
||||
|
||||
@@ -185,6 +185,27 @@ NewCyclistDialog::saveClicked()
|
||||
// set the last version to the latest version
|
||||
appsettings->setCValue(name->text(), GC_VERSION_USED, GcUpgrade::version());
|
||||
|
||||
// nice sidebars please!
|
||||
appsettings->setCValue(name->text(), "splitter/LTM/hide", true);
|
||||
appsettings->setCValue(name->text(), "splitter/LTM/hide/0", false);
|
||||
appsettings->setCValue(name->text(), "splitter/LTM/hide/1", false);
|
||||
appsettings->setCValue(name->text(), "splitter/LTM/hide/2", false);
|
||||
appsettings->setCValue(name->text(), "splitter/LTM/hide/3", true);
|
||||
appsettings->setCValue(name->text(), "splitter/analysis/hide", true);
|
||||
appsettings->setCValue(name->text(), "splitter/analysis/hide/0", false);
|
||||
appsettings->setCValue(name->text(), "splitter/analysis/hide/1", true);
|
||||
appsettings->setCValue(name->text(), "splitter/analysis/hide/2", false);
|
||||
appsettings->setCValue(name->text(), "splitter/analysis/hide/3", true);
|
||||
appsettings->setCValue(name->text(), "splitter/diary/hide", true);
|
||||
appsettings->setCValue(name->text(), "splitter/diary/hide/0", false);
|
||||
appsettings->setCValue(name->text(), "splitter/diary/hide/1", false);
|
||||
appsettings->setCValue(name->text(), "splitter/diary/hide/2", true);
|
||||
appsettings->setCValue(name->text(), "splitter/train/hide", true);
|
||||
appsettings->setCValue(name->text(), "splitter/train/hide/0", false);
|
||||
appsettings->setCValue(name->text(), "splitter/train/hide/1", false);
|
||||
appsettings->setCValue(name->text(), "splitter/train/hide/2", false);
|
||||
appsettings->setCValue(name->text(), "splitter/train/hide/3", false);
|
||||
|
||||
// lets setup!
|
||||
if (unitCombo->currentIndex()==0)
|
||||
appsettings->setCValue(name->text(), GC_UNIT, GC_UNIT_METRIC);
|
||||
|
||||
@@ -429,6 +429,7 @@ RideSummaryWindow::htmlSummary() const
|
||||
bool even = false;
|
||||
foreach (RideFileInterval interval, ride->intervals()) {
|
||||
RideFile f(ride->startTime(), ride->recIntSecs());
|
||||
f.mainwindow = mainWindow; // hack, until we refactor athlete and mainwindow
|
||||
for (int i = ride->intervalBegin(interval); i < ride->dataPoints().size(); ++i) {
|
||||
const RideFilePoint *p = ride->dataPoints()[i];
|
||||
if (p->secs >= interval.stop)
|
||||
|
||||
Reference in New Issue
Block a user