Replace string concatination with fmt::format

This commit is contained in:
Dr. Dystopia committed 2026-07-28 12:39:54 +02:00
1 parent d742aa8b4c
commit 08e183d322
12 files changed
+56 -38

No files matched your search

+3 -2
View File
@@ -10,6 +10,7 @@
#include <OptionParser.h>
#include <ed25519.h>
#include <fmt/format.h>
#include <mbedtls/base64.h>
#include <mbedtls/sha256.h>
#include <zlib.h>
@@ -225,8 +226,8 @@ static bool DownloadContent(std::span<const TodoList::DownloadOp> to_download,
if (File::Exists(temp_path + DIR_SEP + hash_filename))
continue;
UI::SetDescription("Downloading " + download.filename + "... (File " + std::to_string(i + 1) +
" of " + std::to_string(to_download.size()) + ")");
UI::SetDescription(fmt::format("Downloading {}... (File {} of {})", download.filename, i + 1,
to_download.size()));
UI::SetCurrentMarquee(false);
// Add slashes where needed.