mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Add external drive references for most file-browsers
This fixes an issue on MacOS/X to only show non-root volumes in the file-open dialog. They're just as valid for save-as, export, video files etc. In case of a 2nd internal disk, it is also a valid choice as default folder for new sessions.
This commit is contained in:
parent
ac9329f907
commit
6f01598297
16 changed files with 36 additions and 0 deletions
|
|
@ -22,6 +22,8 @@
|
|||
#include "pbd/compose.h"
|
||||
#include "pbd/shortpath.h"
|
||||
|
||||
#include "gtkmm2ext/utils.h"
|
||||
|
||||
#include "search_path_option.h"
|
||||
#include "pbd/i18n.h"
|
||||
|
||||
|
|
@ -36,6 +38,7 @@ SearchPathOption::SearchPathOption (const string& pathname, const string& label,
|
|||
, _set (set)
|
||||
, add_chooser (_("Select folder to search for media"), FILE_CHOOSER_ACTION_SELECT_FOLDER)
|
||||
{
|
||||
Gtkmm2ext::add_volume_shortcuts (add_chooser);
|
||||
add_chooser.signal_file_set().connect (sigc::mem_fun (*this, &SearchPathOption::path_chosen));
|
||||
|
||||
HBox* hbox = manage (new HBox);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue