Skip to main content

updater_restart

Function updater_restart 

Source
pub fn updater_restart(app: AppHandle)
Expand description

Restart the application after a successful updater_install.

The frontend’s “Restart now” button used to call window.location.reload() which only reloaded the WebView inside the still-running old binary — the staged update never took effect. app.restart() exits and re-execs into the freshly-installed binary.