diff options
author | Toshiaki Asai <toshi.alternative@gmail.com> | 2016-10-12 07:26:27 +0900 |
---|---|---|
committer | Toshiaki Asai <toshi.alternative@gmail.com> | 2016-10-12 07:26:27 +0900 |
commit | 34b5b594106cc46ce5a3c984a9ce55d6b327bac0 (patch) | |
tree | 2e9005f92f7e57b557c6041f4958bc4525aff3e3 /core/plugin/openimg/window.rb | |
parent | 4aff8cde265cc190b22a853b74db9f818473c98c (diff) | |
parent | 5770262f7a4092ada7f9517bacfcffbd58d90466 (diff) | |
download | mikutter-34b5b594106cc46ce5a3c984a9ce55d6b327bac0.tar.gz |
Merge branch 'topic/870-entity-open-with-model' into develop
Diffstat (limited to 'core/plugin/openimg/window.rb')
-rw-r--r-- | core/plugin/openimg/window.rb | 8 |
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) } |