Skip to content

Commit

Permalink
Properly reenable paint mode combo in brush editor
Browse files Browse the repository at this point in the history
It may get disabled when picking classic brushes with smudging enabled,
so then when switching to a MyPaint brush it needs to be re-enabled.
  • Loading branch information
askmeaboutlo0m committed Oct 23, 2024
1 parent 684bbba commit 0bdc0c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/desktop/dialogs/brushsettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,7 @@ void BrushSettingsDialog::updateUiFromMyPaintBrush()
d->spacingSpinner->setVisible(false);

d->paintModeCombo->setCurrentIndex(brush.incremental ? 0 : 1);
d->paintModeCombo->setEnabled(true);
d->eraseModeBox->setChecked(brush.erase);
d->lockAlphaBox->setChecked(brush.lock_alpha);
d->lockAlphaBox->setVisible(true);
Expand Down

0 comments on commit 0bdc0c0

Please sign in to comment.