Commit e83da6fb authored by Ray Strode's avatar Ray Strode

manager: retry end session when inhibitor goes away

If an inhibitor goes away, we should try to end the session again,
since that inhibitor may have been the reason that the session
hasn't ended yet.

Also, we should reshow the dialog if relevant, so the user can pick
a different inhibiting app from the list.
parent 7ab62639
......@@ -2203,6 +2203,10 @@ on_store_inhibitor_removed (GsmStore *store,
gsm_exported_manager_emit_inhibitor_removed (manager->priv->skeleton, id);
update_idle (manager);
if (manager->priv->phase >= GSM_MANAGER_PHASE_QUERY_END_SESSION) {
end_session_or_show_shell_dialog (manager);
static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment