File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ QWidget *mainWidget;
1717
1818float scale = 1.0 ;
1919extern void setPen (int mode);
20+ extern void clearCache ();
2021extern QColor colors[];
2122
2223class MainWindow : public QMainWindow {
@@ -70,6 +71,7 @@ class MainWindow : public QMainWindow {
7071 msgBox.addButton (QMessageBox::No);
7172 msgBox.setDefaultButton (QMessageBox::No);
7273 if (msgBox.exec () == QMessageBox::Yes){
74+ clearCache ();
7375 enable_erc ();
7476 exit (0 );
7577 }
Original file line number Diff line number Diff line change @@ -124,7 +124,6 @@ class ImageStorage {
124124 last_image_num = 1 ;
125125 removed = 0 ;
126126 updateGui ();
127- removeDirectory (cache_path);
128127 }
129128
130129 QImage loadValue (qint64 id) {
@@ -801,3 +800,6 @@ QString generateRandomString(int length) {
801800 return randomString;
802801}
803802
803+ void clearCache (){
804+ removeDirectory (QStandardPaths::writableLocation (QStandardPaths::CacheLocation) + " /pardus-pen/" );
805+ }
You can’t perform that action at this time.
0 commit comments