Skip to content

Commit

Permalink
v3.0.0-beta.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Aktindo committed Apr 17, 2024
1 parent dce4d71 commit a963cea
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const AppComp: React.FC = () => {
const location = useLocation();
const [updateModalVisible, setUpdateModalVisible] = React.useState(false);
const [updateMessage, setUpdateMessage] = useState("");
const [updateDownloaded, setUpdateDownloaded] = useState(false)
const [updateDownloaded, setUpdateDownloaded] = useState(false);

const [verificationModalVisible, setVerificationModalVisible] =
React.useState(false);
Expand All @@ -54,7 +54,7 @@ const AppComp: React.FC = () => {
});

ipcRenderer.on("update_downloaded", (e, msg) => {
setUpdateMessage(msg)
setUpdateMessage(msg);
setUpdateModalVisible(true);
setUpdateDownloaded(true);
});
Expand Down Expand Up @@ -112,13 +112,16 @@ const AppComp: React.FC = () => {
<Progress isIndeterminate size="sm" />
</div>
</ModalBody>
{updateDownloaded &&
<ModalFooter>
<Button color="success" onPress={() => ipcRenderer.send("restart_app")}>
Restart
</Button>
</ModalFooter> }

{updateDownloaded && (
<ModalFooter>
<Button
color="success"
onPress={() => ipcRenderer.send("restart_app")}
>
Restart
</Button>
</ModalFooter>
)}
</>
)}
</ModalContent>
Expand Down

0 comments on commit a963cea

Please sign in to comment.