Fixed cache of graphs in chart widgets on retina.

This commit is contained in:
23rd
2025-12-16 11:46:36 +03:00
parent 4c545181ad
commit 5c1604fc53
5 changed files with 13 additions and 0 deletions

View File

@@ -154,6 +154,7 @@ void InnerWidget::fill() {
Ui::AddSkip(container);
Ui::AddDivider(container);
Ui::AddSkip(container);
Statistic::FixCacheForHighDPIChartWidget(container);
}
{
AddHeader(container, tr::lng_bot_earn_overview_title);

View File

@@ -665,6 +665,7 @@ void InnerWidget::fill() {
}(), Type::StackBar);
widget->setTitle(tr::lng_bot_earn_chart_revenue());
}
Statistic::FixCacheForHighDPIChartWidget(container);
}
if (data.topHoursGraph.chart
|| data.revenueGraph.chart

View File

@@ -287,6 +287,7 @@ void FillStatistic(
Type::Bar);
}
}
Statistic::FixCacheForHighDPIChartWidget(content);
if (!state->pendingCount) {
++state->pendingCount;
singlePendingDone();