Give the user visible feedback when reconfiguring.

This commit is contained in:
Pavel Sanda 2021-07-22 14:30:08 +02:00
parent b0a74fa410
commit 20cee15937

View File

@ -1652,8 +1652,10 @@ void GuiApplication::gotoBookmark(unsigned int idx, bool openFile,
void GuiApplication::reconfigure(string const & option)
{
// emit message signal.
if (current_view_)
if (current_view_) {
current_view_->message(_("Running configure..."));
current_view_->setCursor(Qt::WaitCursor);
}
// Run configure in user lyx directory
string const lock_file = package().getConfigureLockName();
@ -1667,6 +1669,9 @@ void GuiApplication::reconfigure(string const & option)
LaTeXPackages::getAvailable();
fileUnlock(fd, lock_file.c_str());
if (current_view_)
current_view_->unsetCursor();
if (ret)
Alert::information(_("System reconfiguration failed"),
_("The system reconfiguration has failed.\n"