Skip to content

Commit

Permalink
Move dlg.destroy to an ensure block on message dialog block.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugopl committed Sep 26, 2021
1 parent e0f5a9d commit bd6ebab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/includes/message_dialog.cr
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module Gtk
transient_for: transient_for)
dlg.response_signal.connect do |response|
block.call(response)
ensure
dlg.destroy
end
dlg.show
Expand Down

0 comments on commit bd6ebab

Please sign in to comment.