now clearing cache on loading/reloading file

feature/settings-window
Michael Ochmann 3 years ago
parent 075e6986b0
commit a55db3267f
  1. 1
      src/ui/src/components/Ation.js

@ -20,6 +20,7 @@ const Ation = () => {
useEffect(() => { useEffect(() => {
window.api.onFileOpen(presentation => { window.api.onFileOpen(presentation => {
window.api.clearCache();
const [newBasePath, slideDeck] = presentation; const [newBasePath, slideDeck] = presentation;
if (!slideDeck) if (!slideDeck)
return; return;

Loading…
Cancel
Save