We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0475a6 commit d3958d5Copy full SHA for d3958d5
gradia/ui/window.py
@@ -229,7 +229,11 @@ def _finalize_close(self, copy: bool) -> None:
229
self._on_close_finished()
230
231
def _on_close_finished(self) -> None:
232
- self.destroy()
+ def delayed_destroy():
233
+ self.destroy()
234
+ return False
235
+ self.hide()
236
+ GLib.timeout_add(1000, delayed_destroy) # Large images need the extra milliseconds to be fully copied.
237
238
def _on_confirm_close_ok(self) -> None:
239
self._finalize_close(copy=False)
0 commit comments