Added icon to entry point for statistics.

This commit is contained in:
23rd 2023-10-06 15:46:31 +03:00 committed by John Preston
parent 8564e4d727
commit a605275157
5 changed files with 2 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -51,6 +51,7 @@ menuIconExport: icon {{ "menu/export", menuIconColor }};
menuIconClear: icon {{ "menu/clear", menuIconColor }};
menuIconManage: icon {{ "menu/manage", menuIconColor }};
menuIconDiscussion: icon {{ "menu/discussion", menuIconColor }};
menuIconStats: icon {{ "menu/stats", menuIconColor }};
menuIconCreatePoll: icon {{ "menu/create_poll", menuIconColor }};
menuIconQrCode: icon {{ "menu/qr_code", menuIconColor }};
menuIconExpand: icon {{ "menu/expand", menuIconColor }};

View File

@ -1000,7 +1000,6 @@ void Filler::addManageChat() {
}
void Filler::addViewStatistics() {
#ifdef _DEBUG
if (const auto channel = _peer->asChannel()) {
if (channel->flags() & ChannelDataFlag::CanGetStatistics) {
const auto controller = _controller;
@ -1010,10 +1009,9 @@ void Filler::addViewStatistics() {
if (const auto strong = weak.get()) {
controller->showSection(Info::Statistics::Make(peer));
}
}, nullptr);
}, &st::menuIconStats);
}
}
#endif
}
void Filler::addCreatePoll() {