diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-09-15 21:36:36 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-09-16 12:05:31 +0300 |
| commit | 9e8cae39e56b22f443569b89ad7f6238f9cfda6c (patch) | |
| tree | a2078ad2b1e2368a97aa7268dec5307879b734f0 /indra/newview/llappviewer.cpp | |
| parent | 41d9d0dfe8b7a341b18951d562643aba5f73323a (diff) | |
#5856 Fix default state not restoring
Diffstat (limited to 'indra/newview/llappviewer.cpp')
| -rw-r--r-- | indra/newview/llappviewer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 386ffe9601..139f8dd426 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -6006,9 +6006,10 @@ void LLAppViewer::setPermitOSHibernation(bool permit) } else { + // User is active, check settings and set OS hibernation mode accordingly static LLCachedControl<S32> os_hibernation_mode(gSavedSettings, "OSHibernationMode", 0); eHibernationMode mode = static_cast<eHibernationMode>(os_hibernation_mode()); - if (mode != LL_HIBERNATE_MODE_DEFAULT && mCurrentHibernationMode != mode) + if (mCurrentHibernationMode != mode) { setOSHibernationMode(mode); mCurrentHibernationMode = mode; |
