From 23f4b304b8aa405ed73b5b66ff9caa990c922a82 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 26 Sep 2024 18:24:05 +0300 Subject: [PATCH] hot fix of the hot fix (again) --- src/common/config.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/config.cpp b/src/common/config.cpp index 281646059..f130c74a5 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -13,11 +13,11 @@ namespace toml { template std::filesystem::path find_fs_path_or(const basic_value& v, const K& ky, std::filesystem::path opt) { - if (opt.empty()) { - return opt; - } try { auto str = find(v, ky); + if (str.empty()) { + return opt; + } std::u8string u8str{(char8_t*)&str.front(), (char8_t*)&str.back() + 1}; return std::filesystem::path{u8str}; } catch (...) {