From 6359e76ca3f6b7004484c6a376fd2da4365c1093 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Wed, 26 Aug 2026 19:03:27 -0300
Subject: kdf: refresh read-only filesystem filtering
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Remove stale disk entries when read-only filesystems are hidden,
so changing the option takes effect without restarting KDiskFree.

Use false as the fallback value to match CStdOption and preserve
the existing default behavior.

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 kdf/disklist.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kdf/disklist.cpp b/kdf/disklist.cpp
index 506605d4..7607ad4a 100644
--- a/kdf/disklist.cpp
+++ b/kdf/disklist.cpp
@@ -275,7 +275,7 @@ void DiskList::dfDone()
 	  
   TQString oldgroup=config->group();
   config->setGroup("KDFConfig");
-  bool hideROFs = config->readBoolEntry("HideReadOnlyFilesystems", true);
+  bool hideROFs = config->readBoolEntry("HideReadOnlyFilesystems", false);
   config->setGroup(oldgroup);
 
   readingDFStdErrOut=true;
@@ -356,6 +356,8 @@ void DiskList::dfDone()
         disk->setMounted(true);    // its now mounted (df lists only mounted)
         replaceDeviceEntry(disk);
       } else {
+        if (hideROFs && isROFs)
+          deleteAllMountedAt(disk->mountPoint());
         delete disk;
       }
 
-- 
cgit v1.2.3

