summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Westman <flyingpimonster@flyingpimonster.net>2019-03-25 20:46:16 -0500
committerJames Westman <flyingpimonster@flyingpimonster.net>2019-03-26 16:38:12 -0500
commit49e36d768f8e7617e62d03418caedc6059f17035 (patch)
tree63e16c60c0157d7f9714fab6f868d45d6519c59d
parentaffa89e6362700d3863a92bfa943c771b31015cc (diff)
downloadgnome-maps-49e36d768f8e7617e62d03418caedc6059f17035.tar.gz
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.
-rw-r--r--src/printOperation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printOperation.js b/src/printOperation.js
index 60399ff5..89462a59 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;