I was trying to refactor out some repetitive stuff and something strange
happened. When I run the following code (I'm using r751 on Windows), I get
two copies of the app window. When I dismiss one with the 'done' button both
close, but if I directly close the window, I have to close them both
individually. When I move the def from above the Shoes block to below it,
the program works as expected with only one app window.

def par(msg)
  flow { para msg }
end

Shoes.app do
  require 'par'
  par("zomg!")
  button("done") { exit }
end

Reply via email to