-
Notifications
You must be signed in to change notification settings - Fork 130
#5719 Detect hybernation #2 #5876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1474,7 +1474,25 @@ void LLViewerWindow::handlePreCloseRequest() | |
| { | ||
| LLAppViewer::instance()->createCloseRequestMarker(); | ||
| } | ||
| } | ||
|
|
||
| void LLViewerWindow::handleCloseRequestCanceled() | ||
| { | ||
| // WINDOW THREAD! since we need this to act fast. | ||
| if (!LLApp::isExiting() && !LLApp::isStopped()) | ||
| { | ||
| LLAppViewer::instance()->removeCloseRequestMarker(); | ||
| } | ||
| } | ||
|
|
||
| void LLViewerWindow::handleSuspendRequest() | ||
| { | ||
| LLAppViewer::instance()->sendViewerStatistics(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure, but simple logging inside
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are already doing logging in window code, but wouldn't hurt, thank you.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done it in the next commit. |
||
| // Todo: this should send a disconnect request as viewer | ||
| // can't keep heartbeat up while suspended and will get | ||
| // disconnected within a minute. | ||
| // Add a disconnect here once 'prevent OS from sleeping' | ||
| // feature is ready. | ||
| } | ||
|
|
||
| bool LLViewerWindow::handleCloseRequest(LLWindow *window, bool from_user) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.