From 30878ae39460e14fe0a8ba0c06b3db6d16e73715 Mon Sep 17 00:00:00 2001 From: Tannin Date: Thu, 19 May 2016 19:17:15 +0200 Subject: added button to clear webcaches and cookies --- src/nexusinterface.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/nexusinterface.cpp') diff --git a/src/nexusinterface.cpp b/src/nexusinterface.cpp index f5baa6ab..2c690aa4 100644 --- a/src/nexusinterface.cpp +++ b/src/nexusinterface.cpp @@ -27,6 +27,7 @@ along with Mod Organizer. If not, see . #include #include +#include #include @@ -409,6 +410,12 @@ void NexusInterface::cleanup() m_DiskCache = nullptr; } +void NexusInterface::clearCache() +{ + m_DiskCache->clear(); + m_AccessManager->clearCookies(); +} + void NexusInterface::nextRequest() { if ((m_ActiveRequest.size() >= MAX_ACTIVE_DOWNLOADS) -- cgit v1.3.1