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:
parent
828d1245c9
commit
efa2efa221
@ -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];
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user