commit 6d4ab799172b93dfa0ec8a68ad41c824357aeead
Author: Scott Kostyshak <[email protected]>
Date:   Fri Nov 25 10:06:59 2022 -0500

    Effectively disable the "Stop command?" dialog
    
    We now allow the user to cancel the background process at any point
    (via the red "x" in the status bar or Document > Cancel Export), so
    we do not need to poll the user with the dialog.
    
    The patch works by setting timeout to "-1" which is treated as a
    special value to disable the poll.
    
    Fix (by obviation) #12531 and #9953, which were about the dialog.
---
 lib/RELEASE-NOTES  |   10 ++++++----
 src/support/os.cpp |    9 ++++++---
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/lib/RELEASE-NOTES b/lib/RELEASE-NOTES
index d879510..d3f0289 100644
--- a/lib/RELEASE-NOTES
+++ b/lib/RELEASE-NOTES
@@ -3,10 +3,12 @@
 
 !!Interface changes
 
-* It is now possible to cancel background export processes. A menu entry
-  to do so will appear on the Document menu when such a process is underway.
-  The LFUN for this is export-cancel. One can also click on the red 'x' next
-  to the spinner to cancel export.
+* It is now possible to cancel background export processes at any time. A menu
+  entry to do so will appear on the Document menu when such a process is
+  underway.  The LFUN for this is export-cancel. One can also click on the red
+  'x' next to the spinner to cancel export. Thanks to this functionality, we 
now
+  remove the "Stop command?" prompt, which polled users whether to stop a long
+  process.
 
 * The items on the Edit menu have been reordered, and many of the shortcuts
   have been changed so that they are more intuitive in the case of often
diff --git a/src/support/os.cpp b/src/support/os.cpp
index 8fd6492..cafe4b1 100644
--- a/src/support/os.cpp
+++ b/src/support/os.cpp
@@ -47,9 +47,12 @@ namespace os {
 
 int timeout_ms()
 {
-       // return -1 to disable the timeout completely.
-       // (-1 is a special case in SystemcallPrivate::waitWhile()).
-       return 3 * 60 * 1000;
+       // Starting in 2.4.0, we allow the user to cancel the background
+       // process at any time with LFUN_EXPORT_CANCEL, so the timeout dialog
+       // is no longer useful.
+       // "-1" effectively disables the timeout (it is a special case in
+       // SystemcallPrivate::waitWhile()).
+       return -1;
 }
 
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to