2
0
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:
John Preston
2015-01-26 16:04:41 +03:00
parent 9cfaab6baf
commit dde1a5a6eb
20 changed files with 281 additions and 316 deletions

View File

@@ -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() {