Improve management of cached data, allow cleaning cache data older than x months

parent 546d6b46
Pipeline #23306 passed with stage
in 15 minutes and 23 seconds
......@@ -28,6 +28,10 @@
</group>
<group name="misc">
<entry name="cleanCacheMonths" type="Int">
<label>Number of months to discard cache data.</label>
<default>6</default>
</entry>
<entry name="openlastproject" type="Bool">
<label>Open last project on startup.</label>
<default>false</default>
......@@ -961,7 +965,7 @@
<label>Show additional controls in the c0rners on-monitor widget.</label>
<default>false</default>
</entry>
<entry name="projectloading_avformatnovalidate" type="Bool">
<label>Do not validate the video files when loading a project for the sake of speed.</label>
<default>false</default>
......@@ -971,12 +975,12 @@
<label>Display audio levels.</label>
<default>true</default>
</entry>
<entry name="enable_recording_preview" type="Bool">
<label>Should we display video frames while capturing.</label>
<default>true</default>
</entry>
<entry name="add_new_clip" type="Bool">
<label>Add cut clips to project after transcoding.</label>
<default>true</default>
......
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="kdenlive" version="184" translationDomain="kdenlive">
<kpartgui name="kdenlive" version="185" translationDomain="kdenlive">
<MenuBar>
<Menu name="file" >
<Action name="file_save"/>
......@@ -242,6 +242,7 @@
<ActionList name="dock_actions" />
</Menu>
<Menu name="settings" >
<Action name="manage_cache" />
<Action name="run_wizard" />
<Menu name="qt_opengl" ><text>OpenGL Backend</text>
<Action name="opengl_auto" />
......
This diff is collapsed.
......@@ -34,6 +34,7 @@ class QLabel;
class QGridLayout;
class QTreeWidget;
class QPushButton;
class QToolButton;
/**
* @class ChartWidget
......@@ -101,11 +102,13 @@ private:
ChartWidget *m_globalPie;
QLabel *m_previewSize;
QLabel *m_proxySize;
QLabel *m_totalProxySize;
QLabel *m_audioSize;
QLabel *m_thumbSize;
QLabel *m_currentSize;
QLabel *m_globalSize;
QLabel *m_selectedSize;
QLabel *m_backupSize;
QWidget *m_currentPage;
QWidget *m_globalPage;
QTreeWidget *m_listWidget;
......@@ -117,12 +120,14 @@ private:
QString m_processingDirectory;
QDir m_globalDir;
QStringList m_proxies;
QPushButton *m_globalDelete;
QToolButton *m_globalDelete;
void updateDataInfo();
void updateGlobalInfo();
void updateTotal();
void buildGlobalCacheDialog(int minHeight);
void processglobalDirectories();
void processBackupDirectories();
void processProxyDirectory();
private slots:
void gotPreviewSize(KJob *job);
......@@ -130,14 +135,21 @@ private slots:
void gotAudioSize(KJob *job);
void gotThumbSize(KJob *job);
void gotFolderSize(KJob *job);
void gotBackupSize(KJob *job);
void gotProjectProxySize(KJob *job);
void refreshGlobalPie();
void deletePreview();
void deleteProjectProxy();
void deleteProxy();
void deleteAudio();
void deleteThumbs();
void deleteCurrentCacheData();
void deleteBackup();
void cleanBackup();
void openCacheFolder();
void deleteSelected();
void cleanCache();
void cleanProxy();
signals:
void disableProxies();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment