Skip to content

Commit

Permalink
Hide the stem analyzer setting
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier committed Jul 13, 2024
1 parent 1a090a4 commit 711af7f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/preferences/beatdetectionsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
class BeatDetectionSettings {
public:
enum class StemStrategy {
Disabled,
// TODO (xxx) - detect if the stem is using compliant labels for its
Disabled = 0,
// TODO (#13466) - detect if the stem is using compliant labels for its
// channels and use the first channel if so - to be implemented
// Automatic
Enforced
Enforced = 2
};

BeatDetectionSettings(UserSettingsPointer pConfig) : m_pConfig(pConfig) {}
Expand Down
4 changes: 4 additions & 0 deletions src/preferences/dialog/dlgprefbeats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ DlgPrefBeats::DlgPrefBeats(QWidget* parent, UserSettingsPointer pConfig)

loadSettings();

// TODO (#13466) Keeping the setting hidden for now
comboBoxStemStrategy->hide();
labelStemStrategy->hide();

// Connections
connect(comboBoxBeatPlugin,
QOverload<int>::of(&QComboBox::currentIndexChanged),
Expand Down
2 changes: 1 addition & 1 deletion src/preferences/dialog/dlgprefbeatsdlg.ui
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ This can speed up beat detection on slower computers but may result in lower qua
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label">
<widget class="QLabel" name="labelStemStrategy">
<property name="text">
<string>Use rhythmic channel when analysing stem file</string>
</property>
Expand Down
4 changes: 4 additions & 0 deletions src/preferences/dialog/dlgprefkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ DlgPrefKey::DlgPrefKey(QWidget* parent, UserSettingsPointer pConfig)

loadSettings();

// TODO (#13466) Keeping the setting hidden for now
comboBoxStemStrategy->hide();
labelStemStrategy->hide();

// Connections
connect(plugincombo, QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &DlgPrefKey::pluginSelected);
Expand Down
2 changes: 1 addition & 1 deletion src/preferences/dialog/dlgprefkeydlg.ui
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ and allows you to pitch adjust them for harmonic mixing.</string>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label">
<widget class="QLabel" name="labelStemStrategy">
<property name="text">
<string>Exclude rhythmic channel when analysing stem file</string>
</property>
Expand Down

0 comments on commit 711af7f

Please sign in to comment.