pub fn restart_app(app: AppHandle, safe_mode: bool, runtime: State<'_, Runtime>)
Restarts Toolblox, optionally without loading any widgets for the next session.