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:
Lirusaito
2013-03-07 07:44:38 -05:00
parent 6153beabff
commit 661e135778

View File

@@ -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);