diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 55066dba15..a32d8c453c 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -26288,5 +26288,16 @@ Change of this parameter will affect the layout of buttons in notification toast Value 0 + FSSnapshotLocalNamesWithTimestamps + + Comment + include a timestamp in the filename when saving snapshots locally + Persist + 1 + Type + Boolean + Value + 1 + diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 489180b980..77130beae3 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -5936,8 +5936,15 @@ void LLViewerWindow::saveImageLocal(LLImageFormatted *image, const snapshot_save filepath = sSnapshotDir; filepath += gDirUtilp->getDirDelimiter(); filepath += sSnapshotBaseName; - filepath += now.toLocalDateString("_%Y-%m-%d_%H%M%S"); - filepath += llformat("%.2d", i); +// FIRE-35391 - Restore ability for snapshots saving with simple index number +// filepath += now.toLocalDateString("_%Y-%m-%d_%H%M%S"); +// filepath += llformat("%.2d", i); + if (gSavedSettings.getBOOL("FSSnapshotLocalNamesWithTimestamps")) + { + filepath += now.toLocalDateString("_%Y-%m-%d_%H%M%S"); + } + filepath += llformat("_%.3d", i); +// filepath += extension; llstat stat_info; diff --git a/indra/newview/skins/default/xui/en/panel_snapshot_local.xml b/indra/newview/skins/default/xui/en/panel_snapshot_local.xml index a00a122f0a..658d49e321 100644 --- a/indra/newview/skins/default/xui/en/panel_snapshot_local.xml +++ b/indra/newview/skins/default/xui/en/panel_snapshot_local.xml @@ -176,14 +176,34 @@ - Save location and filename between sessions + Persist location and filename + + + + include date/time in filename