aboutsummaryrefslogtreecommitdiffstats
path: root/core/plugin/openimg/window.rb
diff options
context:
space:
mode:
Diffstat (limited to 'core/plugin/openimg/window.rb')
-rw-r--r--core/plugin/openimg/window.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/plugin/openimg/window.rb b/core/plugin/openimg/window.rb
index 4b3c95e6..ee57f07a 100644
--- a/core/plugin/openimg/window.rb
+++ b/core/plugin/openimg/window.rb
@@ -38,11 +38,11 @@ module Plugin::Openimg
end
true end
- pixbufloader.ssc(:closed, self) do
+ complete_promise.next{
progress(pixbufloader.pixbuf, paint: true)
- true end
-
- complete_promise.trap { |exception|
+ pixbufloader.close
+ }.trap { |exception|
+ error exception
@image_surface = error_surface
redraw(repaint: true)
}