13
0

fix logic to reshow strip "name" after a message display

This commit is contained in:
Paul Davis 2015-10-08 14:58:28 -04:00
parent 02181174c3
commit d3efef7f5c
2 changed files with 24 additions and 10 deletions

View File

@ -387,18 +387,25 @@ Strip::notify_property_changed (const PropertyChange& what_changed)
return;
}
if (_route) {
string line1;
string fullname = _route->name();
show_route_name ();
}
if (fullname.length() <= 6) {
line1 = fullname;
} else {
line1 = PBD::short_version (fullname, 6);
}
_surface->write (display (0, line1));
void
Strip::show_route_name ()
{
if (!_route) {
return;
}
string line1;
string fullname = _route->name();
if (fullname.length() <= 6) {
line1 = fullname;
} else {
line1 = PBD::short_version (fullname, 6);
}
_surface->write (display (0, line1));
}
void
@ -763,6 +770,7 @@ void
Strip::periodic (ARDOUR::microseconds_t now)
{
bool reshow_vpot_mode = false;
bool reshow_name = false;
if (!_route) {
return;
@ -779,6 +787,7 @@ Strip::periodic (ARDOUR::microseconds_t now)
_block_screen_redisplay_until = 0;
reshow_vpot_mode = true;
reshow_name = true;
}
if (_block_vpot_mode_redisplay_until >= now) {
@ -791,6 +800,10 @@ Strip::periodic (ARDOUR::microseconds_t now)
reshow_vpot_mode = true;
}
if (reshow_name) {
show_route_name ();
}
if (reshow_vpot_mode) {
return_to_vpot_mode_display ();
} else {

View File

@ -159,6 +159,7 @@ private:
std::vector<Evoral::Parameter> possible_pot_parameters;
void next_pot_mode ();
void set_vpot_parameter (Evoral::Parameter);
void show_route_name ();
void reset_saved_values ();