diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index d1f1bd11..f9b82876 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -87,6 +87,9 @@ export default function App() { }, }); + + + return ( { }, [mode]); useEffect(() => { -// const settingsStorage = localStorage.getItem('settings_emudeck'); -// -// if (!!settingsStorage) { -// setState(JSON.parse(settingsStorage)); -// setStatePage({ ...statePage, disabledNext: false }); -// } + const settingsStorage = JSON.parse(localStorage.getItem('settings_emudeck')); + if (!!settingsStorage) { + setState({...state, ...settingsStorage}); + setStatePage({ ...statePage, disabledNext: false }); + } if (cloned == false) { ipcChannel.sendMessage('bash', [ 'clone|||mkdir -p ~/emudeck/backend && git clone https://github.com/dragoonDorise/EmuDeck.git ~/emudeck/backend/ && cd ~/emudeck/backend && git checkout '+branch+' && touch ~/emudeck/.cloned && printf "\ec" && echo true', @@ -73,7 +72,6 @@ const WelcomePage = () => { 'pull|||cd ~/emudeck/backend && git reset --hard && git clean -fd && git checkout '+branch+' && git pull', ]); ipcChannel.on('pull', (stdout) => { - console.log(stdout); setStatePage({ ...statePage, downloadComplete: true }); }); } @@ -81,7 +79,7 @@ const WelcomePage = () => { return (