mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Plan activity: Allow to enter Workout Code (#4842)
Similar to "Log activity".
This commit is contained in:
committed by
GitHub
parent
b5a85f313b
commit
d7167b1cbf
@@ -303,9 +303,7 @@ ManualActivityPageBasics::ManualActivityPageBasics
|
|||||||
woTypeEdit->addItem(tr("Manual Entry"));
|
woTypeEdit->addItem(tr("Manual Entry"));
|
||||||
woTypeEdit->setCurrentIndex(1);
|
woTypeEdit->setCurrentIndex(1);
|
||||||
if (plan) {
|
if (plan) {
|
||||||
|
|
||||||
connect(woTypeEdit, &QComboBox::currentIndexChanged, this, [sportEdit](int index) {
|
connect(woTypeEdit, &QComboBox::currentIndexChanged, this, [sportEdit](int index) {
|
||||||
|
|
||||||
sportEdit->setEnabled(index != 0);
|
sportEdit->setEnabled(index != 0);
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
sportEdit->setText("Bike");
|
sportEdit->setText("Bike");
|
||||||
@@ -331,8 +329,6 @@ ManualActivityPageBasics::ManualActivityPageBasics
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
workoutCodeLabel->setVisible(! plan);
|
|
||||||
workoutCodeEdit->setVisible(! plan);
|
|
||||||
rpeLabel->setVisible(! plan);
|
rpeLabel->setVisible(! plan);
|
||||||
rpeEdit->setVisible(! plan);
|
rpeEdit->setVisible(! plan);
|
||||||
woTypeLabel->setVisible(plan);
|
woTypeLabel->setVisible(plan);
|
||||||
|
|||||||
Reference in New Issue
Block a user