Skip to content

Commit

Permalink
Fix CheckBox ReanalyseImported
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Feb 12, 2021
1 parent c7118d4 commit 79fc5af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
3 changes: 2 additions & 1 deletion src/preferences/dialog/dlgprefbeats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void DlgPrefBeats::slotUpdate() {
// Fast analysis cannot be combined with non-constant tempo beatgrids.
checkBoxFastAnalysis->setEnabled(m_bAnalyzerEnabled && m_bFixedTempoEnabled);
checkBoxReanalyse->setEnabled(m_bAnalyzerEnabled);
checkBoxReanalyseImported->setEnabled(m_bReanalyzeImported);
checkBoxReanalyseImported->setEnabled(m_bAnalyzerEnabled);

if (!m_bAnalyzerEnabled) {
return;
Expand Down Expand Up @@ -133,6 +133,7 @@ void DlgPrefBeats::slotUpdate() {
checkBoxFastAnalysis->setChecked(m_bFastAnalysisEnabled && m_bFixedTempoEnabled);

checkBoxReanalyse->setChecked(m_bReanalyze);
checkBoxReanalyseImported->setEnabled(m_bReanalyzeImported);
}

void DlgPrefBeats::slotReanalyzeChanged(int value) {
Expand Down
23 changes: 11 additions & 12 deletions src/preferences/dialog/dlgprefbeatsdlg.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>564</width>
<width>576</width>
<height>400</height>
</rect>
</property>
Expand Down Expand Up @@ -45,26 +45,26 @@ automatically shows a beat-grid for them, and allows you to synchronize tracks u
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="checkBoxFastAnalysis">
<widget class="QCheckBox" name="checkBoxFixedTempo">
<property name="toolTip">
<string>Enable fast beat detection.
If activated Mixxx only analyzes the first minute of a track for beat information.
This can speed up beat detection on slower computers but may result in lower quality beatgrids.</string>
<string>Converts beats detected by the analyzer into a fixed-tempo beatgrid.
Use this setting if your tracks have a constant tempo (e.g. most electronic music).
Often results in higher quality beatgrids, but will not do well on tracks that have tempo shifts.</string>
</property>
<property name="text">
<string>Enable Fast Analysis (For slow computers, may be less accurate)</string>
<string>Assume constant tempo (Recommended)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxFixedTempo">
<widget class="QCheckBox" name="checkBoxFastAnalysis">
<property name="toolTip">
<string>Converts beats detected by the analyzer into a fixed-tempo beatgrid.
Use this setting if your tracks have a constant tempo (e.g. most electronic music).
Often results in higher quality beatgrids, but will not do well on tracks that have tempo shifts.</string>
<string>Enable fast beat detection.
If activated Mixxx only analyzes the first minute of a track for beat information.
This can speed up beat detection on slower computers but may result in lower quality beatgrids.</string>
</property>
<property name="text">
<string>Assume constant tempo (Recommended)</string>
<string>Enable Fast Analysis (For slow computers, may be less accurate)</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -148,7 +148,6 @@ Often results in higher quality beatgrids, but will not do well on tracks that h
<tabstops>
<tabstop>checkBoxAnalyzerEnabled</tabstop>
<tabstop>comboBoxBeatPlugin</tabstop>
<tabstop>checkBoxFastAnalysis</tabstop>
<tabstop>checkBoxFixedTempo</tabstop>
<tabstop>checkBoxReanalyse</tabstop>
<tabstop>checkBoxReanalyseImported</tabstop>
Expand Down

0 comments on commit 79fc5af

Please sign in to comment.