[haiku-development] FilePanel opened pre-emptively

  • From: Philippe Saint-Pierre <stpere@xxxxxxxxx>
  • To: haiku-development <haiku-development@xxxxxxxxxxxxx>
  • Date: Thu, 9 Aug 2012 15:55:27 -0400

Hello,

While doing my recent changes to Tracker, something stroke me as
suboptimal.  In several applications, FileType preflets comes to mind,
but there are others, WonderBrush also comes to mind, during the
construction of the application, a FilePanel is created, and kept
hidden, only to be showed as necessary later.  This seems like a
sensible choice, should greatly reduce any 'lag' impression when
clicking the menu item, etc...

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 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?

Philippe

Other related posts: