File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ extern WhiteBoard *board;
2222extern QWidget * mainWidget;
2323extern DrawingWidget *drawing;
2424extern FloatingSettings *floatingSettings;
25- QString cache = QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + " /pardus-pen/" + generateRandomString(5 )+" /" ;
25+ QString cache_main = QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + " /pardus-pen/" ;
26+ QString cache = cache_main + generateRandomString(5 )+" /" ;
2627
2728void removeDirectory (const QString &path);
2829
@@ -124,6 +125,7 @@ class ImageStorage {
124125 last_image_num = 1 ;
125126 removed = 0 ;
126127 updateGui ();
128+ removeDirectory (cache_path);
127129 }
128130
129131 QImage loadValue (qint64 id) {
@@ -801,7 +803,6 @@ QString generateRandomString(int length) {
801803}
802804
803805void clearCache (){
804- QString cache_main = QStandardPaths::writableLocation (QStandardPaths::CacheLocation) + " /pardus-pen/" ;
805806 debug (" Clear cache:%s\n " , cache_main.toStdString ().c_str ());
806807 removeDirectory (cache_main);
807808}
You can’t perform that action at this time.
0 commit comments