Use a detached window for Preferences at first run

Once a user explicitly attaches the Window as Tab, we
expect the user to know about tabbing, tab-cycling, related
window/tab actions, and relevant shortcuts.

Otherwise it can confusing:
https://discourse.ardour.org/t/cant-get-out-of-preferences/102147
This commit is contained in:
Robin Gareus 2019-11-29 16:27:37 +01:00
parent 279faad75c
commit 5fb83da69c
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -2104,16 +2104,12 @@ MidiPortOptions::pretty_name_edit (std::string const & path, string const & new_
AudioEngine::instance()->set_port_pretty_name ((*iter)[midi_port_columns.fullname], new_text);
}
/*============*/
RCOptionEditor::RCOptionEditor ()
: OptionEditorContainer (Config, string_compose (_("%1 Preferences"), PROGRAM_NAME))
, Tabbable (*this, _("Preferences")
#ifdef MIXBUS
, false // detached by default (first start, no instant.xml)
#endif
) /* pack self-as-vbox into tabbable */
/* pack self-as-vbox into tabbable */
, Tabbable (*this, _("Preferences"), /* detached by default */ false)
, _rc_config (Config)
, _mixer_strip_visibility ("mixer-element-visibility")
{