fix for crash with cabal files containing wildcards in versions
Only present the window containing the pane if it is visible