summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-01-11 00:43:35 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-11 00:43:35 +0100
commit12fd63144288f7ae58f4b67ebf6e844ce9ef840b (patch)
tree510c826053ceeee7f9812b4441aa4b4ff9c20581 /src/wx
parentbe11a94655e8de7192f7d37fb72f1133d63b2a82 (diff)
Fix failure to restore "audio same fades as video" setting to the GUI (#2934).
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/audio_panel.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc
index 1d6cba315..1418f1ff9 100644
--- a/src/wx/audio_panel.cc
+++ b/src/wx/audio_panel.cc
@@ -277,6 +277,16 @@ AudioPanel::film_content_changed (int property)
_fade_out->clear ();
}
} else if (property == AudioContentProperty::USE_SAME_FADES_AS_VIDEO) {
+ set<bool> check;
+ for (auto i: ac) {
+ check.insert(i->audio->use_same_fades_as_video());
+ }
+
+ if (check.size() == 1) {
+ _use_same_fades_as_video->set(ac.front()->audio->use_same_fades_as_video());
+ } else {
+ _use_same_fades_as_video->set(false);
+ }
setup_sensitivity ();
}
}