13
0

Fix "muted" indicator (dup on audio-regions, missing on macOS)

RegionView::make_name already adds the prefix, AudioRegionView
does not need to add it again.

Also the font used on macOS (Lucia Grande) has a rather limited
UTF-8 charset and does not support:
 \u20F0 (COMBINING ENCLOSING CIRCLE BACKSLASH)
 \U0001F507 (SPEAKER WITH CANCELLATION STROKE)
so for now we keep using "!" on macOS.
This commit is contained in:
Robin Gareus 2022-06-07 02:33:41 +02:00
parent 828d1245c9
commit efa2efa221
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 4 additions and 5 deletions

View File

@ -391,11 +391,6 @@ AudioRegionView::region_renamed ()
str = string ("*") + str;
}
if (_region->muted()) {
str = string ("!") + str;
}
boost::shared_ptr<AudioRegion> ar (audio_region());
if (ar->scale_amplitude() != 1.0) {
char tmp[32];

View File

@ -799,7 +799,11 @@ RegionView::make_name () const
}
if (_region->muted()) {
#ifdef __APPLE__
str = string ("!") + str;
#else
str = std::string("\U0001F507") + str; // SPEAKER WITH CANCELLATION STROKE
#endif
}
return str;