File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ QWidget *bgMenu;
1717static QVBoxLayout *penSettingsLayout;
1818static QVBoxLayout *pageSettingsLayout;
1919
20+ extern void clearCache ();
21+
2022void setupWidgets (){
2123 // Pen Settings Menu
2224 QWidget *penSettings = new QWidget ();
@@ -124,6 +126,7 @@ void setupWidgets(){
124126 args4 << " set" << " org.gnome.mutter" << " overlay-key" << " 'SUPER_L'" ;
125127 p4.execute (" gsettings" , args4);
126128 #endif
129+ clearCache ();
127130 enable_erc ();
128131 exit (0 );
129132 });
Original file line number Diff line number Diff line change @@ -801,5 +801,7 @@ QString generateRandomString(int length) {
801801}
802802
803803void clearCache (){
804- removeDirectory (QStandardPaths::writableLocation (QStandardPaths::CacheLocation) + " /pardus-pen/" );
804+ QString cache_main = QStandardPaths::writableLocation (QStandardPaths::CacheLocation) + " /pardus-pen/" ;
805+ debug (" Clear cache:%s\n " , cache_main.toStdString ().c_str ());
806+ removeDirectory (cache_main);
805807}
You can’t perform that action at this time.
0 commit comments