mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Added icon to entry point for statistics.
This commit is contained in:
parent
8564e4d727
commit
a605275157
5 changed files with 2 additions and 3 deletions
BIN
Telegram/Resources/icons/menu/stats.png
Normal file
BIN
Telegram/Resources/icons/menu/stats.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 548 B |
BIN
Telegram/Resources/icons/menu/stats@2x.png
Normal file
BIN
Telegram/Resources/icons/menu/stats@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 938 B |
BIN
Telegram/Resources/icons/menu/stats@3x.png
Normal file
BIN
Telegram/Resources/icons/menu/stats@3x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
|
@ -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 }};
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue