Skip to content

Commit

Permalink
sessionStorage is back
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Jul 31, 2022
1 parent 53c6dd7 commit 5f28d4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 3 additions & 0 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ export default function App() {
},
});




return (
<GlobalContext.Provider
value={{
Expand Down
14 changes: 6 additions & 8 deletions src/renderer/pages/WelcomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@ const WelcomePage = () => {
}, [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',
Expand All @@ -73,15 +72,14 @@ 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 });
});
}
}, [cloned]);

return (
<Welcome
alert="This version of EmuDeck comes with a mayor update of the PS2 Emulator, please update your PS2 games using Steam Rom Manager at the end of this installation."
alert="This version of EmuDeck comes with a mayor update of the PS2 Emulator, you'll need to refresh your PS2 Steam Games using Steam Rom Manager at the end of this installation."
disabledNext={second ? false : disabledNext}
disabledBack={disabledBack}
downloadComplete={downloadComplete}
Expand Down

0 comments on commit 5f28d4d

Please sign in to comment.