mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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 }};
|
menuIconClear: icon {{ "menu/clear", menuIconColor }};
|
||||||
menuIconManage: icon {{ "menu/manage", menuIconColor }};
|
menuIconManage: icon {{ "menu/manage", menuIconColor }};
|
||||||
menuIconDiscussion: icon {{ "menu/discussion", menuIconColor }};
|
menuIconDiscussion: icon {{ "menu/discussion", menuIconColor }};
|
||||||
|
menuIconStats: icon {{ "menu/stats", menuIconColor }};
|
||||||
menuIconCreatePoll: icon {{ "menu/create_poll", menuIconColor }};
|
menuIconCreatePoll: icon {{ "menu/create_poll", menuIconColor }};
|
||||||
menuIconQrCode: icon {{ "menu/qr_code", menuIconColor }};
|
menuIconQrCode: icon {{ "menu/qr_code", menuIconColor }};
|
||||||
menuIconExpand: icon {{ "menu/expand", menuIconColor }};
|
menuIconExpand: icon {{ "menu/expand", menuIconColor }};
|
||||||
|
|
|
@ -1000,7 +1000,6 @@ void Filler::addManageChat() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Filler::addViewStatistics() {
|
void Filler::addViewStatistics() {
|
||||||
#ifdef _DEBUG
|
|
||||||
if (const auto channel = _peer->asChannel()) {
|
if (const auto channel = _peer->asChannel()) {
|
||||||
if (channel->flags() & ChannelDataFlag::CanGetStatistics) {
|
if (channel->flags() & ChannelDataFlag::CanGetStatistics) {
|
||||||
const auto controller = _controller;
|
const auto controller = _controller;
|
||||||
|
@ -1010,10 +1009,9 @@ void Filler::addViewStatistics() {
|
||||||
if (const auto strong = weak.get()) {
|
if (const auto strong = weak.get()) {
|
||||||
controller->showSection(Info::Statistics::Make(peer));
|
controller->showSection(Info::Statistics::Make(peer));
|
||||||
}
|
}
|
||||||
}, nullptr);
|
}, &st::menuIconStats);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Filler::addCreatePoll() {
|
void Filler::addCreatePoll() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue