Skip to content

Commit

Permalink
fix: useEffect update states
Browse files Browse the repository at this point in the history
  • Loading branch information
hhuseyinkacmaz committed Aug 6, 2024
1 parent 8d42d71 commit 270160e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions release/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "syntharium-installer-launcher",
"version": "0.0.6",
"version": "0.0.7",
"description": "An installer application for TUMFARSynchrony syntharium project.",
"license": "MIT",
"author": {
Expand Down
1 change: 1 addition & 0 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ autoUpdater.on('update-downloaded', (info) => {
sendStatusToWindow(
'Update downloaded. Please quit from application and launch again.',
);
autoUpdater.quitAndInstall()
});

app.on('window-all-closed', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function Footer() {
return (
<div className="mt-2 mb-1 grid grid-cols-3 gap-10 px-4 static bottom-0">
<div className="font-montserrat rounded-lg border p-4 text-center shadow">
Version 0.0.6
Version 0.0.7
</div>
<div className="font-montserrat rounded-lg border p-4 text-center shadow">
TUMFarSynchrony
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/pages/Installer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function Installer() {
setIsPageLoading(false);
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [updateAvailable, autoUpdateLogs]);
}, []);
if (updateAvailable) {
return (
<div className="flex h-screen flex-col justify-normal">
Expand Down

0 comments on commit 270160e

Please sign in to comment.