Improve restart from UI

This commit is contained in:
ElMoribond 2021-07-14 17:43:29 +02:00 committed by GitHub
parent bc2a6c8296
commit 408a586240
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,9 @@ export default function DialogRestart({ show, setShow }) {
useEffect(() => { useEffect(() => {
if (detectRestarted != null && Number.isInteger(detectRestarted)) { if (detectRestarted != null && Number.isInteger(detectRestarted)) {
if (!detectRestarted) if (!detectRestarted) {
setDialogTitle('Server-initiated startup'); setDialogTitle('Server-initiated startup');
}
setShow(false); setShow(false);
} }
}, [detectRestarted]); // eslint-disable-line react-hooks/exhaustive-deps }, [detectRestarted]); // eslint-disable-line react-hooks/exhaustive-deps