Restore DEV-12255 patch
Refresh the snapshot when calling show after instance exists (IE: Via Keyboard shortcut)
Should never have been removed in the first place, the purpose of 7faa19b297 was to have an explicit click to refresh, this patch requires an explicit click.
This does NOT break keeping the same snapshot while switching settings
This commit is contained in:
@@ -3075,6 +3075,14 @@ void LLFloaterSnapshot::show(void*)
|
||||
|
||||
sInstance->impl.updateLayout(sInstance);
|
||||
}
|
||||
else // just refresh the snapshot in the existing floater instance (DEV-12255)
|
||||
{
|
||||
LLSnapshotLivePreview* preview = LLFloaterSnapshot::Impl::getPreviewView();
|
||||
if(preview)
|
||||
{
|
||||
preview->updateSnapshot(TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
sInstance->open(); /* Flawfinder: ignore */
|
||||
sInstance->focusFirstItem(FALSE);
|
||||
|
||||
Reference in New Issue
Block a user