[haiku-bugs] Re: [Haiku] #13463: adding a NeverDisableDefaultButton parameter to the BFilePanel constructor

  • From: "owenca" <trac@xxxxxxxxxxxx>
  • Date: Tue, 02 May 2017 23:55:24 -0000

#13463: adding a NeverDisableDefaultButton parameter to the BFilePanel 
constructor
----------------------------------+---------------------------------
   Reporter:  owenca              |      Owner:  nobody
       Type:  enhancement         |     Status:  new
   Priority:  normal              |  Milestone:  Unscheduled
  Component:  Kits/libtracker.so  |    Version:  R1/Development
 Resolution:                      |   Keywords:  BFilePanel, Tracker
 Blocked By:                      |   Blocking:
Has a Patch:  1                   |   Platform:  All
----------------------------------+---------------------------------

Comment (by owenca):

 humdinger, thanks for helping me understand it!

 axeld, I think we should leave save panels alone because

 1. the node flavors only apply to open panels, and
 2. the handling of enabling/disabling the Save button seems to do what
 it's supposed to do.

 (If a folder is selected in a save panel, the Save button's label changes
 to Open, and it will enter the selected folder. Making it always enabled
 would just allow re-entering the folder it's already in because the popup
 menu field in the upper left corner always shows the name of the current
 panel directory.)

 Please see the new patch with the function name change. Now the default
 button in an Open panel is always enabled if the B_DIRECTORY_NODE flag is
 set, regardless if other flags are set.

 What shall we do about the 'Select {current folder}' button in Expander?
 It would do exactly the same thing as the default Select button when
 nothing is selected.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13463#comment:19>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: