trivial: Fix the fwupdtool progress bar to actually work

This commit is contained in:
Richard Hughes 2021-07-29 22:01:16 +01:00
parent 6f7ceb9b35
commit cbf57ea9d1

View File

@ -3012,6 +3012,7 @@ main (int argc, char *argv[])
priv->main_ctx = g_main_context_new (); priv->main_ctx = g_main_context_new ();
priv->loop = g_main_loop_new (priv->main_ctx, FALSE); priv->loop = g_main_loop_new (priv->main_ctx, FALSE);
priv->progressbar = fu_progressbar_new (); priv->progressbar = fu_progressbar_new ();
fu_progressbar_set_main_context(priv->progressbar, priv->main_ctx);
priv->request = fu_engine_request_new (); priv->request = fu_engine_request_new ();
/* add commands */ /* add commands */