[gnome-maps] printOperation: Fix message dialog not closing



commit 49e36d768f8e7617e62d03418caedc6059f17035
Author: James Westman <flyingpimonster flyingpimonster net>
Date:   Mon Mar 25 20:46:16 2019 -0500

    printOperation: Fix message dialog not closing
    
    This happened because the wrong condition was being checked to close
    the message dialog. Now it will be closed when rendering is finished,
    not when printing is finished.

 src/printOperation.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/printOperation.js b/src/printOperation.js
index 60399ff..89462a5 100644
--- a/src/printOperation.js
+++ b/src/printOperation.js
@@ -62,7 +62,7 @@ var PrintOperation = class PrintOperation {
         let height = context.get_height();
 
         Mainloop.timeout_add(_MIN_TIME_TO_ABORT, () => {
-            if (this._operation.get_status() !== Gtk.PrintStatus.FINISHED) {
+            if (!this._layout.renderFinished) {
                 this._abortDialog.show();
             }
             return false;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]