Skip to content

Commit

Permalink
invalidate options only when unclicking slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Oct 6, 2021
1 parent ef75fce commit bb24251
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions common/model-views.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,6 @@ namespace rs2
{
delay_set = false;
last_set_value = static_cast<float>(int_value);
*invalidate_flag = true;
model.add_log( to_string() << "Setting " << opt << " to " << int_value );
res = true;
}
Expand All @@ -798,13 +797,14 @@ namespace rs2
{
model.add_log(to_string() << "Setting " << opt << " to " << last_requested_value);
delay_set = false;
*invalidate_flag = true;
res = true;
}
}
else
delay_set = false;
}

if (res) *invalidate_flag = true;
}
}
else
Expand Down Expand Up @@ -860,15 +860,13 @@ namespace rs2
{
delay_set = false;
last_set_value = tmp_value;
*invalidate_flag = true;
model.add_log(to_string() << "Setting " << opt << " to " << tmp_value);
res = true;
}
else
{
delay_set = true;
last_requested_value = tmp_value;
res = true;
}
}
else
Expand All @@ -882,14 +880,16 @@ namespace rs2
if (set_ok)
{
model.add_log(to_string() << "Setting " << opt << " to " << last_requested_value);
*invalidate_flag = true;
delay_set = false;
res = true;
}
}
else
delay_set = false;

}

if (res) *invalidate_flag = true;
}
}
}
Expand Down

0 comments on commit bb24251

Please sign in to comment.