From 418675018889a6167cda372a830daeeb638f4160 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 12 May 2025 13:23:34 +0800 Subject: [PATCH] feat(gui/macOS): Do not send ignore list if it is just empty Signed-off-by: Claudio Cambra --- src/gui/macOS/fileprovidersocketcontroller.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/macOS/fileprovidersocketcontroller.cpp b/src/gui/macOS/fileprovidersocketcontroller.cpp index ff92b3de28..9e7eaaf5fc 100644 --- a/src/gui/macOS/fileprovidersocketcontroller.cpp +++ b/src/gui/macOS/fileprovidersocketcontroller.cpp @@ -251,6 +251,10 @@ void FileProviderSocketController::sendIgnoreList() const ExcludedFiles ignoreList; ConfigFile::setupDefaultExcludeFilePaths(ignoreList); const auto patterns = ignoreList.activeExcludePatterns(); + if (patterns.isEmpty()) { + qCWarning(lcFileProviderSocketController) << "No active ignore list patterns, not sending."; + return; + } const auto message = QString(QStringLiteral("IGNORE_LIST:") + patterns.join('\n')); sendMessage(message); }