Make reload button clear the network cache.

This commit is contained in:
Josh Matthews 2020-07-27 19:56:53 -04:00
parent fe24fc3068
commit f030162ec3
10 changed files with 50 additions and 1 deletions

View file

@ -354,6 +354,9 @@ impl ResourceChannelManager {
CoreResourceMsg::Synchronize(sender) => {
let _ = sender.send(());
},
CoreResourceMsg::ClearCache => {
http_state.http_cache.write().unwrap().clear();
},
CoreResourceMsg::ToFileManager(msg) => self.resource_manager.filemanager.handle(msg),
CoreResourceMsg::Exit(sender) => {
if let Some(ref config_dir) = self.config_dir {