diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-08-22 18:30:58 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-08-22 18:30:58 +0800 |
commit | 036fabec4bcf82e3391a866eda36b642f93261a0 (patch) | |
tree | 35c1646373d55e7ddb31eb5329ea1c3236a24409 /indra/newview/llviewerwindow.cpp | |
parent | efef28c1f51c4b8ec53c3742961a11b8c706f17f (diff) | |
parent | 09eeab38ff66ec420a8248041c4e61e11eed4b0f (diff) |
Merge branch 'main' into 2025.06
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 125a34bfde..db6b23229b 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -4839,13 +4839,21 @@ void LLViewerWindow::saveImageLocal(LLImageFormatted *image, const snapshot_save auto err = 0; auto extension("." + image->getExtension()); auto now = LLDate::now(); + static LLCachedControl<bool> snapshot_timestamp(gSavedSettings, "SnapshotTimestamp", true) ; do { filepath = sSnapshotDir; filepath += gDirUtilp->getDirDelimiter(); filepath += sSnapshotBaseName; + if (snapshot_timestamp) + { filepath += now.toLocalDateString("_%Y-%m-%d_%H%M%S"); filepath += llformat("%.2d", i); + } + else if (is_snapshot_name_loc_set) + { + filepath += llformat("_%.3d", i); + } filepath += extension; llstat stat_info; |