mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 10:09:59 +00:00
Prompt the user to shutdown if requried when installing by ID
This matches what is done in the update-all and install cases.
This commit is contained in:
parent
0a90626413
commit
54e636e96d
@ -1887,12 +1887,7 @@ fu_util_update_by_id (FuUtilPrivate *priv, const gchar *device_id, GError **erro
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* the update needs the user to restart the computer */
|
/* the update needs the user to restart the computer */
|
||||||
if (fwupd_device_has_flag (dev, FWUPD_DEVICE_FLAG_NEEDS_REBOOT)) {
|
return fu_util_prompt_complete (priv->completion_flags, TRUE, error);
|
||||||
if (!fu_util_prompt_complete (FWUPD_DEVICE_FLAG_NEEDS_REBOOT, TRUE,
|
|
||||||
error))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user