Skip to content

Commit

Permalink
fix: checkbox ui not in sync with key colors setting
Browse files Browse the repository at this point in the history
  • Loading branch information
danferns committed Jul 2, 2024
1 parent c065725 commit 9ef24f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/preferences/dialog/dlgprefcolors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ DlgPrefColors::~DlgPrefColors() {
void DlgPrefColors::slotUpdate() {
comboBoxHotcueColors->clear();
comboBoxTrackColors->clear();
bKeyColorsEnabled->setChecked(m_bKeyColorsEnabled);
bKeyColorsEnabled->setChecked(
m_pConfig->getValue(kKeyColorsEnabledConfigKey,
BaseTrackTableModel::kKeyColorsEnabledDefault));
for (const auto& palette : std::as_const(mixxx::PredefinedColorPalettes::kPalettes)) {
QString paletteName = palette.getName();
QIcon paletteIcon = drawPalettePreview(paletteName);
Expand Down Expand Up @@ -359,6 +361,7 @@ void DlgPrefColors::slotEditHotcuePaletteClicked() {
void DlgPrefColors::slotKeyColorsEnabled(int i) {
m_bKeyColorsEnabled = static_cast<bool>(i);
BaseTrackTableModel::setKeyColorsEnabled(m_bKeyColorsEnabled);
m_pConfig->setValue(kKeyColorsEnabledConfigKey, bKeyColorsEnabled->checkState());
slotUpdate();
}

Expand Down

0 comments on commit 9ef24f8

Please # to comment.