diff --git a/src/renderer/widgets/Background.cpp b/src/renderer/widgets/Background.cpp index d9bc05f..c528272 100644 --- a/src/renderer/widgets/Background.cpp +++ b/src/renderer/widgets/Background.cpp @@ -72,12 +72,13 @@ void CBackground::configure(const std::unordered_map& pro } else if (!path.empty()) resourceID = g_asyncResourceManager->requestImage(path, m_imageRevision, nullptr); - if (!isScreenshot && reloadTime > -1) { + if (!reloadCommand.empty() && reloadTime > -1) { try { - modificationTime = std::filesystem::last_write_time(absolutePath(path, "")); + if (!isScreenshot) + modificationTime = std::filesystem::last_write_time(absolutePath(path, "")); } catch (std::exception& e) { Debug::log(ERR, "{}", e.what()); } - plantReloadTimer(); // No reloads for screenshots. + plantReloadTimer(); // No reloads if reloadCommand is empty } }