mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
new online / offline status update, notify delayed if other clients are active
This commit is contained in:
@@ -382,6 +382,7 @@ void Application::onWriteUserConfig() {
|
||||
|
||||
void Application::onAppStateChanged(Qt::ApplicationState state) {
|
||||
checkLocalTime();
|
||||
if (window) window->updateIsActive((state == Qt::ApplicationActive) ? cOnlineFocusTimeout() : cOfflineBlurTimeout());
|
||||
}
|
||||
|
||||
void Application::killDownloadSessions() {
|
||||
@@ -707,9 +708,7 @@ void Application::startApp() {
|
||||
}
|
||||
}
|
||||
|
||||
// if (!cLangErrors().isEmpty()) {
|
||||
// window->showLayer(new ConfirmBox("Custom lang failed :(\n\nError: " + cLangErrors(), true, lang(lng_close)));
|
||||
// }
|
||||
window->updateIsActive(cOnlineFocusTimeout());
|
||||
}
|
||||
|
||||
void Application::socketDisconnected() {
|
||||
|
Reference in New Issue
Block a user