Fixed cache of graphs in chart widgets on retina.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -287,6 +287,7 @@ void FillStatistic(
|
||||
Type::Bar);
|
||||
}
|
||||
}
|
||||
Statistic::FixCacheForHighDPIChartWidget(content);
|
||||
if (!state->pendingCount) {
|
||||
++state->pendingCount;
|
||||
singlePendingDone();
|
||||
|
||||
Reference in New Issue
Block a user