Fix autoUpdater showChangelog condition

This commit is contained in:
Shidorien
2023-12-21 21:16:40 +01:00
parent c77f4a9448
commit 7d58fec63b
+3 -2
View File
@@ -34,13 +34,14 @@ export default function App() {
const config = useService(ConfigurationService);
const autoUpdater = useService(AutoUpdaterService);
const location = useLocation();
const navigate = useNavigate();
useEffect(() => {
autoUpdater.showChangelog();
lastValueFrom(autoUpdater.getAppVersion()).then(version => {
if(autoUpdater.isChangelogAvailable && autoUpdater.getLastVersion() === version) {autoUpdater.showChangelog()}
});
checkOneClicks();
}, []);