2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Added hiding of Blob animations at application deactivating.

This commit is contained in:
23rd
2020-12-03 19:34:51 +03:00
parent a57d23f7d9
commit 79d5a49e7c
4 changed files with 30 additions and 3 deletions

View File

@@ -247,7 +247,7 @@ void Application::run() {
QCoreApplication::instance()->installEventFilter(this);
appDeactivated(
appDeactivates(
) | rpl::start_with_next([=](bool deactivated) {
if (deactivated) {
handleAppDeactivated();
@@ -652,7 +652,7 @@ void Application::handleAppDeactivated() {
Ui::Tooltip::Hide();
}
rpl::producer<bool> Application::appDeactivated() const {
rpl::producer<bool> Application::appDeactivates() const {
return base::qt_signal_producer(
static_cast<QGuiApplication*>(QCoreApplication::instance()),
&QGuiApplication::applicationStateChanged