summaryrefslogtreecommitdiff
path: root/src/wx/audio_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-05-11 21:05:56 +0200
committerCarl Hetherington <cth@carlh.net>2025-05-11 21:05:56 +0200
commit72f6f3de6a098cc74394e047aaa3fa5f9f44aa83 (patch)
tree0f83898e07b18f18694a09e2209e8418454bab19 /src/wx/audio_dialog.cc
parenta98f6e4f84d02b87ba05cecfcc3005858f274afa (diff)
Use case for property checks now that it's possible.
This would have prevented the bug fixed in 6bbf7dee.
Diffstat (limited to 'src/wx/audio_dialog.cc')
-rw-r--r--src/wx/audio_dialog.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wx/audio_dialog.cc b/src/wx/audio_dialog.cc
index f0bd80ca0..9f31107f4 100644
--- a/src/wx/audio_dialog.cc
+++ b/src/wx/audio_dialog.cc
@@ -344,9 +344,11 @@ AudioDialog::content_change (ChangeType type, int p)
return;
}
- if (p == AudioContentProperty::STREAMS) {
+ switch (p) {
+ case AudioContentProperty::STREAMS:
try_to_load_analysis ();
- } else if (p == AudioContentProperty::GAIN) {
+ break;
+ case AudioContentProperty::GAIN:
if (_playlist->content().size() == 1 && _analysis) {
/* We can use a short-cut to render the effect of this
change, rather than recalculating everything.
@@ -356,6 +358,7 @@ AudioDialog::content_change (ChangeType type, int p)
} else {
try_to_load_analysis ();
}
+ break;
}
}