mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Removed from display point details widget with invalid index.
This commit is contained in:
parent
94fd3e32dd
commit
734e1166ad
1 changed files with 7 additions and 0 deletions
|
@ -1056,6 +1056,13 @@ void ChartWidget::setupDetails() {
|
||||||
_chartData.xPercentage.back(),
|
_chartData.xPercentage.back(),
|
||||||
}).max);
|
}).max);
|
||||||
|
|
||||||
|
_details.widget->shownValue(
|
||||||
|
) | rpl::start_with_next([=](bool shown) {
|
||||||
|
if (shown && _details.widget->xIndex() < 0) {
|
||||||
|
_details.widget->hide();
|
||||||
|
}
|
||||||
|
}, _details.widget->lifetime());
|
||||||
|
|
||||||
_chartArea->mouseStateChanged(
|
_chartArea->mouseStateChanged(
|
||||||
) | rpl::start_with_next([=](const RpMouseWidget::State &state) {
|
) | rpl::start_with_next([=](const RpMouseWidget::State &state) {
|
||||||
if (_animationController.animating()) {
|
if (_animationController.animating()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue