diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-01-11 23:49:21 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-01-11 23:49:21 +0200 |
commit | 12a97d50bfeb035193ccc0d2f3263f9245395584 (patch) | |
tree | eddbed8d1d1cb0728403964430725beeb0d8dbe8 /indra/newview | |
parent | 8e43871137611a0cb9ca752003ccf2e27a0cab88 (diff) |
SL-15943 Snapshot 360 floater should refresh on hotkey
Ctrl+shift+alt+S should refresh the snapshot if floater is already open
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llfloater360capture.cpp | 7 | ||||
-rw-r--r-- | indra/newview/llfloater360capture.h | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llfloater360capture.cpp b/indra/newview/llfloater360capture.cpp index 745f154535..c469356cb0 100644 --- a/indra/newview/llfloater360capture.cpp +++ b/indra/newview/llfloater360capture.cpp @@ -113,6 +113,11 @@ BOOL LLFloater360Capture::postBuild() // by default each time vs restoring the last value mQualityRadioGroup->setSelectedIndex(0); + return true; +} + +void LLFloater360Capture::onOpen(const LLSD& key) +{ // Construct a URL pointing to the first page to load. Although // we do not use this page for anything (after some significant // design changes), we retain the code to load the start page @@ -153,8 +158,6 @@ BOOL LLFloater360Capture::postBuild() // We do an initial capture when the floater is opened, albeit at a 'preview' // quality level (really low resolution, but really fast) onCapture360ImagesBtn(); - - return true; } // called when the user choose a quality level using diff --git a/indra/newview/llfloater360capture.h b/indra/newview/llfloater360capture.h index 6da7ee074a..8f765c0b1b 100644 --- a/indra/newview/llfloater360capture.h +++ b/indra/newview/llfloater360capture.h @@ -47,6 +47,7 @@ class LLFloater360Capture: ~LLFloater360Capture(); BOOL postBuild() override; + void onOpen(const LLSD& key) override; void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event) override; void changeInterestListMode(bool send_everything); |