diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-08-22 18:29:08 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-08-22 18:29:08 +0800 |
commit | 09eeab38ff66ec420a8248041c4e61e11eed4b0f (patch) | |
tree | 8d7d71afb6c0a6830b69e3b823919700258bb371 /indra/newview/llviewerwindow.cpp | |
parent | 5d1a176fffc7e232288e050e6b607d20cc68e9eb (diff) |
as requested by Bavid Dailey.
Having timestamp is set as the default.
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 a2e77e9257..d3af22a9d9 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -4829,13 +4829,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; |