2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Returned lost method that checks tray existence.

This commit is contained in:
23rd
2022-06-23 08:29:11 +03:00
parent ce39eb2da9
commit 57f769f358
9 changed files with 35 additions and 7 deletions

View File

@@ -419,6 +419,10 @@ rpl::producer<> Tray::iconClicks() const {
return _iconClicks.events();
}
bool Tray::hasIcon() const {
return _icon;
}
rpl::lifetime &Tray::lifetime() {
return _lifetime;
}

View File

@@ -33,6 +33,8 @@ public:
[[nodiscard]] rpl::producer<> hideToTrayRequests() const;
[[nodiscard]] rpl::producer<> iconClicks() const;
[[nodiscard]] bool hasIcon() const;
void createIcon();
void destroyIcon();