From c53dbf95cb42a7bb22e8690bf699fda32e657845 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 14 Apr 2019 15:07:33 +0900 Subject: Improved code for trash bin management. 1. When size limit is used, a file bigger than the trash size can't be trashed anymore (a warning message is shown). 2. When size limit is used and warning policy selected, files can't be trashed anymore if the total size of the trash will exceed the set size (a warning message is shown). 3. When the trash size settings are modified, the content of the trash is adjusted based on the new settings. 4. Fixed load/saving of trash options when more than one trash folder exists. Signed-off-by: Michele Calgaro --- tdeioslave/trash/trashimpl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tdeioslave/trash/trashimpl.h') diff --git a/tdeioslave/trash/trashimpl.h b/tdeioslave/trash/trashimpl.h index 6e7af2bad..571bbd353 100644 --- a/tdeioslave/trash/trashimpl.h +++ b/tdeioslave/trash/trashimpl.h @@ -95,6 +95,9 @@ public: /// Move data from the old trash system to the new one void migrateOldTrash(); + /// Resize the trash based on the current settings if necessary + void resizeTrash(int trashId); + /// TDEIO error code int lastErrorCode() const { return m_lastErrorCode; } TQString lastErrorMessage() const { return m_lastErrorMessage; } -- cgit v1.2.1