[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-cvs
Subject:    [LyX/master] Give the user visible feedback when reconfiguring.
From:       Pavel Sanda <sanda () lyx ! org>
Date:       2021-07-22 12:20:54
Message-ID: 20210722122054.10BBB2806C7 () lyx ! lyx ! org
[Download RAW message or body]

commit 20cee1593752df09b6c1d47794eb9971404fa448
Author: Pavel Sanda <sanda@lyx.org>
Date:   Thu Jul 22 14:30:08 2021 +0200

    Give the user visible feedback when reconfiguring.
---
 src/frontends/qt/GuiApplication.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt/GuiApplication.cpp
index 1f03997..01a646d 100644
--- a/src/frontends/qt/GuiApplication.cpp
+++ b/src/frontends/qt/GuiApplication.cpp
@@ -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"
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic