Remove wrong private browsing assertion

This tried to assert that we never create a DiskCache object when private
browsing is turned on. However, when initializing, we still create a global
DiskCache, so this will hit when qutebrowser is started with private browsing
turned on via the config.

We could just not create the DiskCache at all when started in private browsing
mode, however we might still need it later when opening a non-private window.
This commit is contained in:
Florian Bruhin 2017-05-16 11:33:52 +02:00
parent 27aa40428e
commit 766a1ebb6d

View File

@ -33,7 +33,6 @@ class DiskCache(QNetworkDiskCache):
def __init__(self, cache_dir, parent=None):
super().__init__(parent)
assert not config.get('general', 'private-browsing')
self.setCacheDirectory(os.path.join(cache_dir, 'http'))
self._set_cache_size()
objreg.get('config').changed.connect(self._set_cache_size)