[haiku-development] Re: FilePanel opened pre-emptively

  • From: Ryan Leavengood <leavengood@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 9 Aug 2012 18:35:05 -0400

On Thu, Aug 9, 2012 at 3:55 PM, Philippe Saint-Pierre <stpere@xxxxxxxxx> wrote:
>
> But, that file panel contains a PoseView and it keeps being fed with
> all the FS notifications of your home folder, while the window is in
> fact hidden, and might never be showed to the user during that
> session.

I think this is indeed suboptimal. Things open fast enough on Haiku
that I really don't see why we would want to cache these as we do.

> I was wondering what were your thoughts about this, should we just
> create the FilePanel objects as needed, or the current behaviour is a
> non problem?

I have another concern with these hidden windows: it makes application
scripting more difficult, since frequently the first window (Window 0)
ends up being the hidden file panel. Those "bad surprise" moments are
the sort of thing I think we should avoid in Haiku. Though I can
concede that most people are probably not using the hey command that
much to script things (but I'm not really sure.)

-- 
Regards,
Ryan

Other related posts: