mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Give the user visible feedback when reconfiguring.
This commit is contained in:
parent
b0a74fa410
commit
20cee15937
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user