This commit is contained in:
恍兮惚兮 2024-05-22 15:21:34 +08:00
parent 60b64948f9
commit 425727ef20

View File

@ -647,7 +647,9 @@ class auto_select_webview(QWidget):
def clearcache(self):
if self.lastcachehtml and os.path.exists(self.lastcachehtml):
os.remove(self.lastcachehtml)
lastcachehtml = self.lastcachehtml
self.lastcachehtml = None
os.remove(lastcachehtml)
def __init__(self, parent) -> None:
super().__init__(parent)